Hi All,
I need to customize ckeditor image selection dialog, and need to add text field to set caption value to image and generate below markup on click of ok button of dialog :
<div class="image">
<img ...>
<div>caption text</div>
</div>
I have successfully added caption text field and modified "onOk" function to generate above markup, but after adding that what ever is entered in CK-editor via keyboard or when second image is selected it goes inside main DIV i.e ''<div class="image">" .
Eg:- I am getting below incorrect results when 2 images are added :
<div class="image">
<img1 ...>
<div>caption text 1 </div>
<div class="image">
<img2 ...>
<div>caption text 2 </div>
</div>
</div>
Expected results aftre adding 2 images :
<div class="image">
<img 1 ...>
<div>caption text 1</div>
</div>
<div class="image">
<img 2 ...>
<div>caption text 2</div>
</div>
I am using version 3.x of ckeditor.
Please suggest solution or pointers to solve above issue.
Thanks !
Faizaan
I did not review your code,
I did not review your code, but instead have just a small remark: why put effort into developing a plugin for an older CKEditor version? It seems it would make much more sense to upgrade to CKEditor 4 first and develop the plugin against the current code base. You can probably also get more responses to your question when going with the current editor version.
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Hi Anna,
Hi Anna,
Thanks for quick reply,
Actually ck-editor is integrated with alfresco and it's codebase is dependent on 3.x version of ck-editor.
Thanks !
If so, I would definitely
If so, I would definitely flag it with alfresco developers, they might not be aware of the update and the CKEditor 4 line is where bug fixing and development effort will go.
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!