i think on form submit replace oEditor's content:filter special
character(',",(,));i use GetData get oEditor's content after use SetData
editor.i find it only working for firefox browser!
sample:
function postPrevFilter(fString){
if(fString==""){
return;
}else{
fString=fString.replace(/'/g,"’");
fString=fString.replace(/"/g,"”");
fString=fString.replace(/\(/g,"(");
fString=fString.replace(/\)/g,")");
return fString;
}
}
function filterEditorContents(EditorName){
var oEditor=FCKeditorAPI.GetInstance(EditorName);
oEditorConn=postPrevFilter(oEditor.GetData());
oEditor.SetData(oEditorConn);
}
this form post server side replace fail!content is no filter
looking this url:http://www.sdhr114.com/testdemo/3.asp
function filterEditorContents(EditorName){
var oEditor=FCKeditorAPI.GetInstance(EditorName);
oEditorConn=postPrevFilter(oEditor.GetData());
oEditor.SetData(oEditorConn);
}
this form post server side replace fail!content is no filter
looking this url:http://www.sdhr114.com/testdemo/3.asp
Wed, 02/11/2009 - 03:54
#1