i have a fckeditor inside thickbox popup
when i show popup editor loads ok
when i save data i get editors value with .GetHTML() function and it works...the problem is when i want to set value of editor on specific event (for example when i load data from my database)
so i called editorsinstance.SetHTML();.....
but the problem is that this works in IE but not in Firefox....does anyone knows why?
thx for help
when i show popup editor loads ok
when i save data i get editors value with .GetHTML() function and it works...the problem is when i want to set value of editor on specific event (for example when i load data from my database)
so i called editorsinstance.SetHTML();.....
but the problem is that this works in IE but not in Firefox....does anyone knows why?
thx for help
Re: SetHTML() doesn't work in firefox
Re: SetHTML() doesn't work in firefox
Re: SetHTML() doesn't work in firefox
Re: SetHTML() doesn't work in firefox
Re: SetHTML() doesn't work in firefox
Re: SetHTML() doesn't work in firefox
Re: SetHTML() doesn't work in firefox
Re: SetHTML() doesn't work in firefox
FCKeditor1val=document.form1.FCKeditor1.value;
FCKeditor1val = FCKeditor1val.replace(/<div class="RCaption"><img ([^>]*)>/gi,'<div class="RCaption"><p><img $1'+'><p>');
FCKeditor1val = FCKeditor1val.replace(/<div class="LCaption"><img ([^>]*)>/gi,'<div class="LCaption"><p><img $1'+'><p>');
var oFCKeditor = FCKeditorAPI.GetInstance ('FCKeditor1');
document.form1.FCKeditor1.value=FCKeditor1val;
oFCKeditor.SetHTML (FCKeditor1val);
oFCKeditor.SetHTML (FCKeditor1val);
}
Re: SetHTML() doesn't work in firefox
function FCKeditor_OnComplete( editorInstance )
{
FCKeditor1val=document.form1.FCKeditor1.value;
FCKeditor1val = FCKeditor1val.replace(/<div class="RCaption"><img ([^>]*)>/gi,'<div class="RCaption"><p><img $1'+'><p>');
FCKeditor1val = FCKeditor1val.replace(/<div class="LCaption"><img ([^>]*)>/gi,'<div class="LCaption"><p><img $1'+'><p>');
var oFCKeditor = FCKeditorAPI.GetInstance ('FCKeditor1');
document.form1.FCKeditor1.value=FCKeditor1val;
oFCKeditor.SetHTML (FCKeditor1val);
}
Re: SetHTML() doesn't work in firefox