Skip to content

Instantly share code, notes, and snippets.

View aimeos's full-sized avatar
:octocat:

Aimeos aimeos

:octocat:
View GitHub Profile
@aimeos
aimeos / ckeditor-component.vue
Last active July 22, 2022 12:59
CKEditor 4.x component for Vue.js 2.x supporting moving in DOM
Vue.component('html-editor', {
template: '\
<textarea rows="6" class="form-control htmleditor" v-bind:id="id" v-bind:name="name" v-bind:value="value"\
v-bind:placeholder="placeholder" v-bind:readonly="readonly" v-bind:tabindex="tabindex">\
</textarea>',
props: ['id', 'name', 'value', 'placeholder', 'readonly', 'tabindex'],
beforeDestroy: function() {
if(this.instance) {
this.instance.destroy();