Hi together,
hope somebody can help me.
I'm using FCK edit 1.6 and the text for the textarea comes from a mysql database. At the Beginning I realised, that the fck editor was only able to load, if I was deleting any '\n' and '\r' before loading fckeditor and setting the text from the database as startvalue for the fckeditor.
Now I have the problem, that if I'm using Opera or Netscape and fck editor shows the normal text area there are no breaks in the text anymore (makes sense, I'm replacing it).
But if I don't replace them in my jsp before loading fckeditor, fckeditor doesn't work and isn't seen there (also not the normal textarea).
Hope somebody can help.
Thanks a lot.
Best Regards from Ravensburg (Germany)
hope somebody can help me.
I'm using FCK edit 1.6 and the text for the textarea comes from a mysql database. At the Beginning I realised, that the fck editor was only able to load, if I was deleting any '\n' and '\r' before loading fckeditor and setting the text from the database as startvalue for the fckeditor.
Now I have the problem, that if I'm using Opera or Netscape and fck editor shows the normal text area there are no breaks in the text anymore (makes sense, I'm replacing it).
But if I don't replace them in my jsp before loading fckeditor, fckeditor doesn't work and isn't seen there (also not the normal textarea).
Hope somebody can help.
Thanks a lot.
Best Regards from Ravensburg (Germany)
RE: Editor doesn't work with new line / breaks
You can try it .It can use nomally when your data are text.But when you data have image .It Maybe display error But I can't resolved it until now
RE: Editor doesn't work with new line / breaks
I add a textarea including the values from the database, and after creating the fckeditor I add the following line:
document.getElementsByName(oFCKeditor.InstanceName)[0].value = document.getElementById('dbHtmlText').value;
But I think it's not really a tidy solution. Maybe you have a better idea for setting the value form the hidden textarea to the fckeditor field.