Hello ;)
I hope you can help me! I want to use second times the inline editor but just one works correct!
the other one shows just a textarea with html code inside without the editor toolbar.
My code:
<form action="save.php" method="post">
<script>CKEDITOR.replace( 'editor1' );</script>
<textarea name='name' class='ckeditor' rows='50' cols='100' width='100%' id="editable" contenteditable="true">
<?php
$homepage = file_get_contents('load_content.txt');
echo $homepage;
?>
</textarea>
<input type="Submit" name="" value="save">
</form>
<br/>
<form action="save2.php" method="post">
<script>CKEDITOR.replace( 'editor1' );</script>
<textarea name='name' class='ckeditor' rows='50' cols='100' height='300px' width='100%' id="editable" contenteditable="true">
<?php
$homepage = file_get_contents('load_content2.txt');
echo $homepage;
?>
</textarea>
<input type="Submit" name="" value="save">
</form>
Just the first one works fine the other one without any function.
Thanks for help!
It makes no sense to set a
It makes no sense to set a textarea as contentEditable, ids should be unique in your page and it's better to name your textareas with different values if you don't want to have problems with CKEditor
thx
Thanks for your hint. The problem was the id!
Because i have a structure which should not changed by the user I see just this way but now it works fine :)