dangvanthanh / vue-ckeditor2

CKEditor 4 wrapper by Vue.js
https://vue-ckeditor2.surge.sh/
MIT License
171 stars 64 forks source link

can't get sourcedialog plugin to work.. any way to use source mode ? #61

Closed vesper8 closed 6 years ago

vesper8 commented 6 years ago

I may be missing something obvious but I just can't get the source mode to work.. where one can edit the html directly or paste in html

I'm using the editor in 'inline' mode

I previously was just using a cdn version of ckeditor

cdn.ckeditor.com/4.6.2/full/ckeditor.js

Then I tried to follow the instructions for adding a plugin. I realized that you first need to use a local version of ckeditor

So I downloaded the full version of ckeditor v4.9.2 and am now loading the ckeditor.js from that folder download

I also downloaded the sourcedialog plugin and put it in the plugin director

and in the config of vue-ckeditor2 I added it to extraplugins

extraPlugins: 'sourcedialog'

I'm not getting any errors, but the source button doesn't show up

in the toolbar I tried adding either "Source" or "sourcedialog" but nothing makes the button appear

        toolbar: [
          { name: 'document', items: ['Source', '-', 'sourcedialog'] },
        ],

Is there another way to have the source mode activated using this package?

vesper8 commented 6 years ago

hah figured it out.. it was simply the case of the word.. it needs to be Sourcedialog