Hello,
I have some velocity code strings in my html code, which gets kind of disturbed by fckeditor.
So I've created a protected code string:
FCKeditor.ProtectedSource.Add( /jslink[\s\S]*"\)/gi );
This should leave strings like '$jslink.getTemplate("xx")' alone (I tested it with var reg = /jslink[\s\S]*"\)/gi;
if (reg.test ('$jslink.getPaneById("333")'))
alert ("Expresion ok");
and it was ok), but it doesn't. Any clues?
Regards, Bo
I have some velocity code strings in my html code, which gets kind of disturbed by fckeditor.
So I've created a protected code string:
FCKeditor.ProtectedSource.Add( /jslink[\s\S]*"\)/gi );
This should leave strings like '$jslink.getTemplate("xx")' alone (I tested it with var reg = /jslink[\s\S]*"\)/gi;
if (reg.test ('$jslink.getPaneById("333")'))
alert ("Expresion ok");
and it was ok), but it doesn't. Any clues?
Regards, Bo