Git Product home page Git Product logo

vue-html-editor's People

Contributors

haixing-hu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vue-html-editor's Issues

$(...).summernote is not a function

Hi there,

I use vuejs-webpack-template with your package but can't seem to get it to work....

The message i get: $(...).summernote is not a function

Any ideas?

How to use this in Nuxt?

Hi
I installed this at my nuxt project but it show this error
[Vue warn]: Failed to mount component: template or render function not defined.

            VueHTMLEditor(
              id="content"
              name="html-editor"
              :model.sync="content"
            )

import VueHTMLEditor from 'vue-html-editor'
export default {
  components: {
    VueHTMLEditor
  },

Can you help me?
Thank you in advance

Demo Application break down

Demo application for vue-html-editor breakdown. There is an error relating to uncaught ReferenceError: $ is not defined

Render function not defined error

Just added everything as per instructions (installed summernote), getting this error:


Failed to mount component: template or render function not defined.

found in

---> <VueHtmlEditor>

TypeError: me.control.code is not a function

I'm using Vue.js 1.0.16 and summernote 0.7.3.
This happens once when typing the first letter in summernote textarea.

The model is not updating as well.

Any ideas why this is happening? I'm doing exactly as in the example

fragment instance issue

Hi

Trying this component I get the following error:

Attribute ":model.sync" is ignored on component <vue-html-editor> because the component is a fragment instance

I'm using Vue 1.0.26.

What am I doing wrong?

Thanks!

Martin

toolbar component property

I am not able to use toolbar property:
<vue-html-editor model="{{@ body}}" toolbar="[font, [bold, italic, underline]]"></vue-html-editor>

If I give any value to tolbar , all the available sommernote buttons appear in the view.

How to use this package inside my inline template component

Good, day, awesome people!

I am really new to vuejs world!

I need your hints in integrating this awesome pakage in my inline-template.
app.js

require('./components/kiosk/emails.js'); // This is Emails inline template component!

This is my vuejs inline component emails.js

Vue.component('forex-kiosk-emails', {
	data: function() {
		return {
			form: new Form({				
				date: moment.utc().format("YYYY-MM-DD"),
				message:'',
				comment:'We will try better exit later if it will be Possible',
			}),			
		}
	},
	mounted() {
		// axios.get('/api/signals').then(response => this.signals = response.data);
        // axios.get('/api/signals/' + 3 + '/edit').then(response => this.signal = response.data);
    },

    methods: {
    	onSubmit: function () {
    		this.form.submit('post', '/api/emails/send-morning-signals');
    	},

    },
    computed: {
    	validation: function() {
    		return	{
    			message: !!this.form.message.trim(),
    		}
    	},
    	isValid: function () {
    		var validation = this.validation
    		return Object.keys(validation).every(function (key) {
    			return validation[key]
    		})
    	}
    },

});

This is my html. emails.blade.php

<forex-kiosk-emails inline-template>
	<div class="panel panel-default">
		<div class="panel-heading">View and edit instrument forms
			<button class="pull-right btn btn-xs btn-default" type="submit" data-toggle="modal" data-target="#createform">Add new form</button>
		</div>
		<div class="panel-body">
			<form action="#" @submit.prevent="onSubmit" v-on:keyup="form.errors.clear($event.target.name)" >
				<div class="form-group">
					<label for="message">Paste signals email</label>
					<textarea v-model="form.message" rows="8" type="text" class="form-control" placeholder="Entry form" contenteditable></textarea>
					<div class="form-text text-danger" v-text="form.errors.get('message')"></div>
					<div v-show="!validation.message" class="form-text text-danger">Please enter data</div>
				</div>
				<button :disabled="!isValid" class="btn btn-primary pull-right" type="submit">Send morning email signals</button>				
			</form>


		</div>
		@{{ form.message }}
	</div>
</forex-kiosk-emails>

Where do I put this code? So I can use it in my emails inline template?

var Vue = require("vue");

var vm = new Vue({
  el: "#app",
  components: {
    "vue-html-editor": require("vue-html-editor")
  },
  data: {
    text: "Hello World!"
  }
});

Thank you very mutch! Any help would be appreciated!

Old jQuery version required?

I get a requirement conflict when trying to install as a bower asset. It seems I need an old jQuery version instead of the current 3.2.x version. Can this be fixed?

composer require bower-asset/vue-html-editor

"bower-asset/vue-html-editor v0.2.1 requires bower-asset/jquery >=2.2.4,<3.0.0 -> satisfiable by bower-asset/jquery[2.2.4] but these conflict with your requirements or minimum-stability"

Compatibility with Vue.js 2.0

Is vue-html-editor compatible with Vue.js 2.0? I'm using Vue.js 2.0 and I'm getting the following error:

[Vue warn]: Failed to mount component: template or render function not defined. (found in component )

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.