I load FCKEditor with some html and a script.
The script won't run.
Is it possible for it to run?
Here's my script. It runs fine but not in FCKeditor.
<script type=""text/javascript"">
var eleTab = document.getElementsByTagName('table');
for (i = 0; i < eleTab.length; ++i)
{
eleTab[i].style.fontSize = eleTab[i].parentNode.style.fontSize;
}
</script>
The script won't run.
Is it possible for it to run?
Here's my script. It runs fine but not in FCKeditor.
<script type=""text/javascript"">
var eleTab = document.getElementsByTagName('table');
for (i = 0; i < eleTab.length; ++i)
{
eleTab[i].style.fontSize = eleTab[i].parentNode.style.fontSize;
}
</script>
Re: JavaScript scripts
here is a hint without the actual content (this goes outside the editor)
var oEditor = FCKEditorAPI.GetInstance( 'your instance name here' );
oEditor.EditorDocument.getElementsByTagName('table');
you can do more but this is just a start. Otherwise - just modify the FCKEditor source for what it is you are trying to accomplish. I may just not clearly understand what you are trying to accomplish.