I am using the editor on a simple page edit. When I user <A> and <BLOCKQUOTE> tags and then update and go back to my edit form, the edit forms do not display any <A> tags or <BLOCKQUOTE> tags.
Is this a bug of is it my system. Im using the <Scipt>CreateFCKeditor(... function and using IE6 on WinXP.
Any help would be much appreciated.
John Watson
Is this a bug of is it my system. Im using the <Scipt>CreateFCKeditor(... function and using IE6 on WinXP.
Any help would be much appreciated.
John Watson
RE: Some HTML Tags causing problems
John Watson
RE: Some HTML Tags causing problems
Hello John,
When you use the Javascript integration module (fckeditor.js) you have to pay attention when passing parameter to the CreateFCKeditor function. This is the function syntax:
<SCRIPT language="javascript">
<!--
CreateFCKeditor(instanceName, width, height, toolbarName, valueHTML) ;
//-->
</SCRIPT>
instanceName: string
width: string (for percentage), number (for pixels)
height: string (for percentage), number (for pixels)
toolbarName: string or null
valueHTM: string
These are some samples:
CreateFCKeditor('EditorDefault', '100%', 150, null, 'This is same sample text.') ;
CreateFCKeditor(EditorAccessibility, 80%, 120, Accessibility, Visit <A href=\http://www.fredck.com/fckeditor\>FCKeditor</A>) ;
CreateFCKeditor('EditorBasic', 300, 80, 'Basic', 'Fred\s sample.') ;
Pay attention with the and in the second and third samples. The where replaced by \ and \ so they are not handled as the end of the string parameter.
Probably you are trying to set the editor value passing your <A> tag without replacing the .
You are working with server side languages, it would be preferable to use the specific languages integration modules (for now available for ASP, ASP.NET and PHP).
Thanks for your interest. Best regards,
FredCK
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn
RE: Some HTML Tags causing problems
I pass string (HTMLValue) to the Javascript integration that I fetch from a MySQL database :
To be sur it's conform string I use three regex transformation (using PHP) :
// 1 transform newline and break return in a simple space
$string=ereg_replace("\r?\n"," ","$string");
// 2 transform the ' char in entity '
$string=ereg_replace("\'","'","$string");
ex : " don't act " is transformed in " don't act "
// 3 transform " char in \' string
$string=ereg_replace("\"","\\'","$string");
ex : "<a href="http://www.url.com">link</a> " is transformed in "<a href=\'http://www.url.com\'>link</a> "
In a MySQL PHP environment it's work well
RE: Some HTML Tags causing problems
Thanks for your help,
FredCK
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn