I have a main page which contains:
- CKEDITOR script
- <iframe> element with a child page
I'm trying to use the "local" CKEDITOR (in main page) to initialize elements in the <iframe> (in child page) when clicking on them. The child page does not include a CKEDITOR script.
I tried to implement this, but have some troubles. If I do this in the main page, everything works as intended. The editor is created and the toolbar is shown. When I do the same with the element in <iframe>, the editor is created, but the toolbar is still hidden. I need to lose focus and refocus the element again to show the toolbar.
I prepared an example on jsfiddle.
The question is: is this kind of scenario (CKEDITOR object in one page, editor instances in another) even supported? If so, what should I do to get it working properly?
Or is it something to avoid completely?