hi guy,
i think i am almost done on the dynamic loading issue, but i need some help from expert:
pls try out the following code:
-----------------------------------
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Word example</title>
<!-- TinyMCE -->
<!-- /TinyMCE -->
</head>
<body>
<a href="example_full.htm">[Full featured example]</a> <a href="example_advanced.htm">[Advanced example]</a> <a href="example_simple.htm">[Simple example]</a> [Word example]
<form method="post" action="http://tinymce.moxiecode.com/dump.php?example=true">
<h3>Word example</h3>
This example shows you how TinyMCE can be configurated to function with Word content in the best possible way. TinyMCE is configured to auto convert/cleanup pasted Word content in this example. It's has also a custom CSS that makes paragraphs marginless as in Word.<br /><br />
<textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 100%">
<p>Some paragraph</p>
<p>Some other paragraph</p>
<p>Some <b>element</b>, this is to be editor 1. <br /> This editor instance has a 100% width to it.
<p>Some paragraph. <a href="http://www.sourceforge.net">Some link</a></p>
<img src="logo.jpg"></p>
</textarea>
<br />
<input type="submit" name="save" value="Submit" />
<input type="reset" name="reset" value="Reset" />
<input type="button" value="dynamic load tiny mce!" onclick="dynamicLoadTinyMCE()" />
</form>
</body>
</html>
<script type="text/javascript">
//dynamicLoadTinyMCE();
function dynamicLoadTinyMCE() {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = "../jscripts/tiny_mce/tiny_mce_src.js";
document.getElementsByTagName('head')[0].appendChild(script);
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = "../jscripts/tiny_mce/mytinymce.js"
document.getElementsByTagName('head')[0].appendChild(script);
tinyMCE.onLoad();
}
</script>
--------------------------------------------------------------------------------
when i click the button, error occur: Error: Could not find the template function: TinyMCE_advanced_getEditorTemplate...
anyone can help to solve the problem?
i think dynamic loading is cool