First of all sorry for my bad english! I've a problem: I wanna insert into my page 2 or more editors.
I Have 2 textareas in my page:
And when I call the javascript in my php page:
I find the editor only in one of two textareas not in both. I suppose the problem is in the replace method.
Any ideas about?
Thanks at all!
I Have 2 textareas in my page:
<textarea name="one" id="one">SOMETHING</textarea> <textarea name="two" id="two">SOMETHING</textarea>
And when I call the javascript in my php page:
/* FIRST EDITOR */ echo '<script type="text/javascript"> window.onload = function() { CKEDITOR.replace( \'one'\', { filebrowserBrowseUrl : \'../ckfinder/ckfinder.html\', filebrowserImageBrowseUrl : \'../ckfinder/ckfinder.html?Type=Images\', filebrowserFlashBrowseUrl : \'../ckfinder/ckfinder.html?Type=Flash\', filebrowserUploadUrl : \'../ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files\', filebrowserImageUploadUrl : \'../ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images\', filebrowserFlashUploadUrl : \'../ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash\' }); } </script>'; /* SECOND EDITOR */ echo '<script type="text/javascript"> window.onload = function() { CKEDITOR.replace( \'two'\',{ filebrowserBrowseUrl : \'../ckfinder/ckfinder.html\', filebrowserImageBrowseUrl : \'../ckfinder/ckfinder.html?Type=Images\', filebrowserFlashBrowseUrl : \'../ckfinder/ckfinder.html?Type=Flash\', filebrowserUploadUrl : \'../ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files\', filebrowserImageUploadUrl : \'../ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images\', filebrowserFlashUploadUrl : \'../ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash\' }); } </script>';
I find the editor only in one of two textareas not in both. I suppose the problem is in the replace method.
Any ideas about?
Thanks at all!
Re: Insert two editors in the same page.
Re: Insert two editors in the same page.
Re: Insert two editors in the same page.
Thanks for suggestion. I try to look the "replacebycode.html" file, and I've copy the js script in the source file,
this js:
And the result is: I don't find the editors in any textareas
Thanks!