Toolbar configuration Solved

User's avatar
Richard J.
10:53 Aug 20, 2014
Hi, not sure if this is a bug or a failure in my configuration knowledge but unless I have 'Image' specified as a toolbar button I am not able to save <img/> tags into source so your image upload plugin does not function. I do not want the standard Image link to remote source dialog as it does not work for my application. How can I get it to work by just specifying 'doksoft_image' in my toolbar config. I have copied my toolbar confir below so you can test it.

Thanks

toolbar:
[
{ name: 'clipboard', items : [ 'Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
{ name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] },

{ name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
{ name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] },
{ name: 'insert', items : [ 'doksoft_image', 'Table','HorizontalRule','PageBreak' ] },

{ name: 'styles', items : [ 'Format','Font','FontSize' ] },
{ name: 'colors', items : [ 'TextColor','BGColor' ] },
{ name: 'tools', items : [ 'Maximize', 'ShowBlocks' ] }

]
Support team avatar
JS+
10:17 Aug 28, 2014
Hello,

Am I right that you lose your tags when switching to Source and back?

In that case I can recommend you to use:
config.allowedContent = true;

I recommend you this way if you do not want to configure CKEditor's ACF (Advanced Content Filter).