Hello,
I need help about a doubt!
I'm using CKEditor 4 in my application. When I save the data in DB and do the selection return the submit button of my form disappears.
If I build a form using the toolbar in ckeditor and include a textarea in it then when you save and return to edit it sees the </textarea> as the tag used to define the initial CKEditor instance. Any content appearing after the textarea appears below the editor window.
Does anyone know why this happens?
Please help me!
Solved!
Hello guys!
I solved the problem!
Below I describe the solution:
You need to use php and javascript as I show below
<?
$safe= str_replace('textarea','safetextarea',$varText);
echo "<textarea id='CKEditor1' name='CKEditor1'>" .$safe ."</textarea>";
?>
<script>
ckeditor_abc = CKEDITOR.replace( "CKEditor1", { toolbar: 'Full' } );
ckeditor_abc.on(
'instanceReady',
function(evt) {
this.setData(this.getData().replace(/safetextarea/g,'textarea'));
}
);
</script>