Hi,
I'm trying to dynamically load in html (with images) in to the CKEditor, in order to edit content.
It works fine with standard text and simple html, but when i try to load in images the page crashes.
It also works fine if i start with a blank editor and then add an image. I cannot, however, reload this content and edit the image as the page crashes.
My code is as follows:
<textarea name="txtNews" id="txtNews" cols="45" rows="5"><? echo "$content"; ?></textarea> <script type="text/javascript"> CKEDITOR.replace( 'txtNews',{ filebrowserBrowseUrl: '../library/corefive-filemanager/index.html', height:"500", width:"625", toolbar : [ ['Source','-',/*'Save','NewPage',*/'Preview','-','Templates'], ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], /*['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],*/ '/', ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'], ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['Link','Unlink','Anchor'], ['Image','Flash','Table','HorizontalRule',/*,'Smiley',*/'SpecialChar'/*,'PageBreak'*/], '/', ['Styles','Format','Font','FontSize'], ['TextColor'/*,'BGColor'*/], //['Maximize', 'ShowBlocks','-','About'] ] } ); </script>