Hi all,
I'd like to know if I can load fckeditor via ajax.
I have a page that loads and then, as part of the onLoad event, I want it to make an ajax call to load a snippet of html that would then initialize fckeditor.
For example, the snippet might contain something like:
<script type="text/javascript" src="system/javascript/external/fckeditor/fckeditor.js"></script>
<textarea name="edit_content" id="edit_content">
This is where the content will be edited...
</textarea>
<script>
fck = new FCKeditor("edit_content");
</script>
Can something like this be made to work? Or does fckeditor really need to be loaded statically? I tried to get it to work, but had to revert back to a static load.
I'd like to know if I can load fckeditor via ajax.
I have a page that loads and then, as part of the onLoad event, I want it to make an ajax call to load a snippet of html that would then initialize fckeditor.
For example, the snippet might contain something like:
<script type="text/javascript" src="system/javascript/external/fckeditor/fckeditor.js"></script>
<textarea name="edit_content" id="edit_content">
This is where the content will be edited...
</textarea>
<script>
fck = new FCKeditor("edit_content");
</script>
Can something like this be made to work? Or does fckeditor really need to be loaded statically? I tried to get it to work, but had to revert back to a static load.