Hello, I would know how to access the FCKeditroAPI library from a dialog. I have created a plugin with an editor and I can't get the value of it.
I'm lost, any suggestion will be appreciated.
Miguel.
I'm lost, any suggestion will be appreciated.
Miguel.

Re: FCKeditorAPI in dialogs
var oEditor = null;
function FCKeditor_OnComplete( editorInstance ) {
oEditor = editorInstance;
}
So that I have an editor in a dialog and I can get its value.
Miguel.
Re: FCKeditorAPI in dialogs
Re: FCKeditorAPI in dialogs
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="robots" content="noindex, nofollow"> <script type="text/javascript" src="../../../../fckeditor.js"></script> </head> <body> <form action="" method="post" target="_blank"> <script type="text/javascript"> <!-- // Automatically calculates the editor base path based on the _samples directory. // This is usefull only for these samples. A real application should use something like this: // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. //var sBasePath = document.location.pathname.substring(0, document.location.pathname.lastIndexOf('/myeditor/')) ; var sBasePath = '/gt_web/'; var oFCKeditor = new FCKeditor('pagesizeeditor') ; oFCKeditor.BasePath = sBasePath; oFCKeditor.Height = 300; oFCKeditor.Width = 800; // Set the custom configurations file path (in this way the original file is mantained). oFCKeditor.Config['CustomConfigurationsPath'] = sBasePath + 'myeditor/plugins/pagesize/pagesizeeditor/pagesizeeditor.config.js?' + ( new Date() * 1 ); // Let's use a custom toolbar for this editor. oFCKeditor.ToolbarSet = 'PageSizeEditorToolbar'; oFCKeditor.Value = ''; oFCKeditor.Create(); //--> var oEditor = null; function FCKeditor_OnComplete( editorInstance ) { oEditor = editorInstance; } </script> </form> </body> </html>var oEditor = FCKeditorAPI.GetInstance("pagesizeeditor");