Hello, I created a plugin to work in CKEditor Inline, however, I am not able to get when the person click and place the HTML tag, it continues changed in inline edit mode and I can not leave the option checked to undo the change as in such bold action.
Does anyone know how to solve? Following code:
CKEDITOR.plugins.add( 'bbp', { init: function( editor ) { editor.ui.addButton( 'BB', { label: 'Insert BB', command: 'addBB', toolbar: 'basicstyles' }); editor.addCommand('addBB', { exec: function (editor) { editor.applyStyle(new CKEDITOR.style({ Element : 'span', attributes : { class:'highlight-tagline active' } })); } }); } });
See code of the basicstyles
See code of the basicstyles plugin.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
One more question, as I have
One more question, as I have put like, four spaces on the tag before the content and four spaces on the tag after the content using this method basicstyles?