Hi guys, I'm newbie here and have not php knowledge. Please help me.
I've created an fckeditor with PHP and i'm trying to get posted data from database in order to update this data (an update record page). So, im trying this:
This works, the text is retrieved from the database BUT its retrieved with html tags !. The editor isn't translating the html code. So, if i save this text again to database it will save the tags as text.
I hope you understand me. Thanks for help.
PD: Working in Dreamweaver with Developer Toolbox.
I've created an fckeditor with PHP and i'm trying to get posted data from database in order to update this data (an update record page). So, im trying this:
<?php $oFCKeditor = new FCKeditor('myHTMLContent') ; $oFCKeditor->BasePath = 'fckeditor/' ; $oFCKeditor->Value = stripslashes(KT_escapeAttribute($row_rsTxt_Content['myHTMLContent'])); // Developer toolbox code to retrieve posted data. $oFCKeditor->Create() ; ?>
This works, the text is retrieved from the database BUT its retrieved with html tags !. The editor isn't translating the html code. So, if i save this text again to database it will save the tags as text.
I hope you understand me. Thanks for help.
PD: Working in Dreamweaver with Developer Toolbox.
Re: Updating record with fckeditor. remove html tags.
I was using asp and was replacing KTML with FCKeditor. I too was having the content not rendering. The line that I had to change was this -
to
It seemed that the Server.HTMLEncode was not allowing it be rendered properly.
Hope this helps someone!