Occasionally after submitting text, trying to reload it into the editor (to edit it after submission), the editor will not load, even though the code is the same. I can only imagine that the javascript is not loading the editor due to something to do with the text it is trying to edit.
The weird thing is, all it's trying to edit is standard html. For example:
------------------------------------------------------------------------
<div>Children’s Sports Academies</div>
<div> </div>
<div>La Manga Club is the ideal place for both young and old to improve their chosen game. The children’s sports academies run Monday to Friday during the main school holidays and are a fun way for children to improve their skills.</div>
<div> </div>
<div>Advance booking is essential and is subject to availability and minimum / maximum numbers.</div>
-----------------------------------------------------------------------------
Is an example of text which causes the editor to not load at all.
Any help is appreciated!
The weird thing is, all it's trying to edit is standard html. For example:
------------------------------------------------------------------------
<div>Children’s Sports Academies</div>
<div> </div>
<div>La Manga Club is the ideal place for both young and old to improve their chosen game. The children’s sports academies run Monday to Friday during the main school holidays and are a fun way for children to improve their skills.</div>
<div> </div>
<div>Advance booking is essential and is subject to availability and minimum / maximum numbers.</div>
-----------------------------------------------------------------------------
Is an example of text which causes the editor to not load at all.
Any help is appreciated!
RE: Editor Not Loading
Using RC3, preview. FF. I have the same problem.
Removing the line breaks helped, but did solve the problem.
The following fails:
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'Body' ) ;
oFCKeditor.BasePath = 'HTTP://www.121.co.za/fck/';
oFCKeditor.Height=400;
oFCKeditor.Value = 'Might I suggest that we add a config var called "can-cache" or some such and default it to false? <br/> <br/> I don\\'t know if the idea about appending random vars to the iframe\\'s src variable is rfc compliant, but it seems to work, and it would cut down SO much on problems for people trying to get this up and running in their own custom manners... then after they know their implimentation works they can set the cache variable to true... <br/> <br/> Neh? Neh? Good Idea? or should I go soak my head? just an idea...' ;
oFCKeditor.Create() ;
</script>
RE: Editor Not Loading
Are you sure you're escaping those apostro-fies right?
i tried it and you're not. Bet other problem is similar. This is another for the FAQ... So now I've got two. =-)
This works:
<script src="/FCKeditor/fckeditor.js"></script>
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'Body' ) ;
oFCKeditor.BasePath = 'HTTP://localhost:8099/FCKeditor/';
oFCKeditor.Height=400;
oFCKeditor.Value = 'Might I suggest that we add a config var called "can-cache" or some such and default it to false? <br/> <br/> I don\'t know if the idea about appending random vars to the iframe\'s src variable is rfc compliant, but it seems to work, and it would cut down SO much on problems for people trying to get this up and running in their own custom manners... then after they know their implimentation works they can set the cache variable to true... <br/> <br/> Neh? Neh? Good Idea? or should I go soak my head? just an idea...' ;
oFCKeditor.Create() ;
</script>
RE: Editor Not Loading
Indeed that does work. That you for the reply. However, for that FAQ, you should also note that you need to strip out the \n and \r tags.
Than you very much for the reply.