While iam editing my page How i can retain the html tag as it is in tinymce editor( iam using textarea).
A:
tinymce usually add slashes to special characters like quotes. so you can use stripslashes function in php to remove slashes.
rahim asgari
2010-09-06 13:13:58
When i taking from the db all the html tags are their.But when i placing inside textarea it is not showing
THOmas
2010-09-06 13:17:14
could u show your html codes?
rahim asgari
2010-09-06 13:20:07
<textarea id="page_content_id" name="page_content"><?php echo $page_content;?></textarea>
THOmas
2010-09-06 13:36:58
and what is inside $page_content?
rahim asgari
2010-09-06 13:44:31
A:
I am not sure what you mean exatly but if it is a problem with your HTML changing when placed in TinyMCE then this will help.
You will need to edit your valid_elements. See link for instructions
http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/valid_elements
If it is a problem with not getting the HTML from TinyMCE when saving it then use this:
var content = tinyMCE.getInstanceById(element_id).getBody().innerHTML;
Todd Moses
2010-09-20 19:09:30