How can I write (insert) a part of html source into page in FCK editor ? For example, if I want to write code for banner, for people who wants to support my site by placing my banner on their site. When I try to write something like <a href="http:mysite">mysite</a>, then the html special chars (like bracket <) in wysiwyg area are converted into html entities (something what is started by ampersand for ex. >) in its source code, in first step. It is correct! But when I edit the page again, then entities in source code are converted into special chars and they are displayed as html code in wysiwyg area (and page), not as a source code. I searched two days, tryed many parameters, but nothing works. I need a help.
Fri, 08/24/2007 - 11:11#1
Re: How to write html source code. For example banner code.
Check samples provided with FCKeditor.
For example if you're using PHP, while creating FCKeditor instance:
you just have to pass plain html code to FCKeditor (not html entities).
Then, if you want to display raw html code in the browser, use built-in PHP function: htmlspecialchars, like it's done in sampleposteddata.php example.
CTO, CKSource - http://cksource.com
Follow CKEditor on: Twitter | Facebook | Google+