Hi there,
is it possible to insert a html from another window?
I can insert content within the same page (like sample08). But I wanna have a popup where you can select content and insert it to the main window with FCKeditor.
e.g.:
- you open a site including the editor
- you click on a link and a popup opens
- in the popup you select the content and press a button
- the content you selected in the popup appears in the fck on the mainpage
is this possible?
is it possible to insert a html from another window?
I can insert content within the same page (like sample08). But I wanna have a popup where you can select content and insert it to the main window with FCKeditor.
e.g.:
- you open a site including the editor
- you click on a link and a popup opens
- in the popup you select the content and press a button
- the content you selected in the popup appears in the fck on the mainpage
is this possible?

Re: Insert HTML form another window?
<script type="text/javascript"> <!-- function InsertHTML() { var oEditor = opener.FCKeditorAPI.GetInstance('opener.args.edit.description_en') ; // Check the active editing mode. if ( opener.oEditor.EditMode == FCK_EDITMODE_WYSIWYG ) { // Insert the desired HTML. opener.oEditor.InsertHtml( '- This is some <a href="/Test1.html">sample</a> HTML -' ) ; } else alert( 'You must be on WYSIWYG mode!' ) ; } --> </script> <div id="eMessage"> </div> <div class="c1" id="eButtons"><input type="button" onclick="InsertHTML();" value="Insert HTML" /></div>Re: Insert HTML form another window?
var oEditor = opener.FCKeditorAPI.GetInstance('args.edit.description_en') ;
instead of
var oEditor = FCKeditorAPI.GetInstance('args.edit.description_en') ;
However, if I print out oEditor i get this:
[object Object];
var oEditor = opener.FCKeditorAPI.GetInstance('args.edit.description_en') ; alert (oEditor);Re: Insert HTML form another window?
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn
Re: Insert HTML form another window?
thx for your nice lines!
It works....
However, if I use the if-then statement from sample08 I get an error:
FCK_EDITMODE_WYSIWYG is undefined....
Hmmmm, or can I trigger FCKeditor to go in WYSIWYG-Mode with an command?
Again thank you,
mickna
Re: Insert HTML form another window?
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn