I have a MS word document with formated informations (Tables, underlines etc). Sure I can copy and paste them into sckeditor while my html file is running. But I want those MS word document information to appear in sckeditor the moment I open that html file.
I tried pasting big codes into oFCKEditor.Value = '';
But I noticed the moment the closing single colon reach the next line, it screw up my sckeditor.
Problem Example:
I tried pasting big codes into oFCKEditor.Value = 'askdkjasdkjjshdkjhakjsdhakjsdhjkahsdjkahsdjkhakjdhajkhdsjkahdsjkahskjdh
<table><tr><td>asdsadsa</td></tr>';
Anyone has any solution how I should go about doing this to put information into oFCKEditor.Value so that my info can appear the exact way as I would paste in sckeditor? Or other alternative?
I tried pasting big codes into oFCKEditor.Value = '';
But I noticed the moment the closing single colon reach the next line, it screw up my sckeditor.
Problem Example:
I tried pasting big codes into oFCKEditor.Value = 'askdkjasdkjjshdkjhakjsdhakjsdhjkahsdjkahsdjkhakjdhajkhdsjkahdsjkahskjdh
<table><tr><td>asdsadsa</td></tr>';
Anyone has any solution how I should go about doing this to put information into oFCKEditor.Value so that my info can appear the exact way as I would paste in sckeditor? Or other alternative?
Re: How do I preload my html file that uses fckeditor with text?
In Javascript you have to escape literal newlines in a string, eg.
should become:
Also, you can set the editor contents with SetData() (see http://docs.fckeditor.net/FCKeditor_2.x ... Script_API )