CKEditor: Plugin Button is shown but the command is not working -


first of all, thank support.

i've tried create first plugin ckeditor. used official tutorial: http://docs.ckeditor.com/#!/guide/plugin_sdk_sample

the button appears in toolbar. if click on this, nothing happens.

here code of plugin.js

ckeditor.plugins.add( 'drmail', {     icons: 'drmail',     init: function( editor ) {         editor.addcommand( 'drmailcommand', {             exec: function( editor ) {                 var = new date();                 editor.inserthtml( 'the current date , time is: <em>' + now.tostring() + '</em>' );             }         });         editor.ui.addbutton( 'drmail', {             label: "e-mail adresse hinzufügen",             command: 'drmailcommand',             toolbar: 'insert'         });     } }); 

thanks help.

i found it. (the hint js-debugger good) had old not functional version of script in cache.

dean


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -