Hi All,
I have created a plugin which inserts a selected pre-uploaded image into the editor frame. It all works well except for the Alt Tag. This woks well too, but only if the tag does NOT contain an apostrophe. The ALT tag is entered by the user and if the write something like "User's are good", this will end up as alt="user"
Any help much appreciated.
---------------------------------------------------------------------------------------------------------------->>
FCKJS_GD.Add = function( PassedFileID, passedTitle, FileName)
{
JSIconPath = "../../../Local_Config/Skins/JS_Default/Download_Icons/"
//alert(passedTitle); <<< When the variable 'passedTitle' gets to here it is still ok!!
>> FCK.InsertHtml must be doing it.
FCK.InsertHtml("<IMG name='"xxxxxxxxxxx"' class='"+CssTG+"' id='"123"' alt='"+passedTitle+"' src='"+JSIconPath+FileName+"'/>") ;
---------------------------------------------------------------------------------------------------------------->>
Kind regards
Abiel M de Groot
I have created a plugin which inserts a selected pre-uploaded image into the editor frame. It all works well except for the Alt Tag. This woks well too, but only if the tag does NOT contain an apostrophe. The ALT tag is entered by the user and if the write something like "User's are good", this will end up as alt="user"
Any help much appreciated.
---------------------------------------------------------------------------------------------------------------->>
FCKJS_GD.Add = function( PassedFileID, passedTitle, FileName)
{
JSIconPath = "../../../Local_Config/Skins/JS_Default/Download_Icons/"
//alert(passedTitle); <<< When the variable 'passedTitle' gets to here it is still ok!!
>> FCK.InsertHtml must be doing it.
FCK.InsertHtml("<IMG name='"xxxxxxxxxxx"' class='"+CssTG+"' id='"123"' alt='"+passedTitle+"' src='"+JSIconPath+FileName+"'/>") ;
---------------------------------------------------------------------------------------------------------------->>
Kind regards
Abiel M de Groot

Re: Plugin not working - Apostrope is causing problem in passed
http://www.experts-exchange.com/Program ... #a20626266