I'd like to change the value of EditorAreaCSS on the fly in JS, AFTER the FCKEditor object has been loaded and rendered. Is this possible? In a nutshell, I'd like to do something like this from my calling CFMX page (the code is simplified, but the jist is there):
<cf_fckeditor>
<script>FCKEditor.EditorAreaCSS = "myfile.css";</script>
Is such a thing possible?
thanks
<cf_fckeditor>
<script>FCKEditor.EditorAreaCSS = "myfile.css";</script>
Is such a thing possible?
thanks
RE: Can EditorAreaCSS be changed on the fly?
in cold fusion MX:
<cfscript>
fckBasePath = "thebasepath";
fckEditor = createObject("component", "#fckBasePath#fckeditor");
fckEditor.instanceName = "myeditor";
fckEditor.value = "[content here]";
fckEditor.basePath = fckBasePath;
fckEditor.width = "100%";
fckEditor.height = "100%";
fckEditor.Config["EditorAreaCSS"] = "#request.paths.url.parentdir#lib/test.css" ;
fckEditor.create(); // create the editor.
</cfscript>
It's that line before the "create()" call that does it.