Hello I'm using ckeditor inside a vaadin project. I added a custom addon. It displays as a little button and then a dialog shows up, once you click ok an image is added to the textarea using this code:
var element = CKEDITOR.dom.element.createFromHtml('<div class=\"myclass\"><img src=\"images/tlab_logo.png\" width=' + w + ' height=' + h + ' border=\"1\" title=\"Name\" /></div>'); CKEDITOR.instances[editor].insertElement(element);
This adds the image inside a div successsfully, but then when I dubbleclick the image in the textarea the editor ofcourse thinks it is an image. I want it to open my dialog, not the image dialog. My dialog that opened when I clicked my custom toolbar-icon. How can I do that?
Have you checked the Plugin
Have you checked the Plugin Dialog Window section of the Plugin SDK?
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!