Hi, everyone. I've just migrated from tiny_mce to ckeditor. And now I can say, that ckeditor is great!
But now I have one problem pasting my data into the WYSIWYG textarea. When I used tiny_mce functions looked this way:
Can you give me an advice which function should I use to get the data in my textarea. I've tried to use SetData - but it doesn't work.
But now I have one problem pasting my data into the WYSIWYG textarea. When I used tiny_mce functions looked this way:
function show_content(){
var mSide = document.getElementById('_sides').value;
$.post("get_data_side.php",{id:mSide},function(html){tiny_m(html);})
$.post("get_data_other.php",{id:mSide},function(html){other_m(html);})
}
function tiny_m(html){
var ed = tinyMCE.get('content');
var mContent = ed.setContent(html);
}
<div style="width:700px;"><textarea name="content" id='content' style="width:500px">
</textarea></div>
<script type="text/javascript">
CKEDITOR.replace( 'content',
{
toolbar : 'articles',
filebrowserBrowseUrl : '../lib/ckeditor/ckfinder/ckfinder.html',
filebrowserImageBrowseUrl : '../lib/ckeditor/ckfinder/ckfinder.html?Type=Images',
filebrowserFlashBrowseUrl : '../lib/ckeditor/ckfinder/ckfinder.html?Type=Flash',
filebrowserUploadUrl : '../lib/ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl : '../lib/ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
filebrowserFlashUploadUrl : '../lib/ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
} );
</script>
Can you give me an advice which function should I use to get the data in my textarea. I've tried to use SetData - but it doesn't work.