Tinymce is a lightweight browser-based WYSIWYG editor written in JavaScript. It has excellent support for IE6 + and firefox1.5 +. Although not the most powerful, it can definitely meet the needs of most websites, and its function configuration is flexible and simple. Another feature is that the loading speed is very fast. If your server uses PHP as the script language, you can further optimize it. Most importantly, tinymce is a free software released based on lgpl license. You can use it for commercial applications.
The jscripts/directory is a real JS file. In actual use, you only need to upload the jscripts/directory to the server. When used, all textarea elements on the page are rendered as tinymce instances.
The default English version is required.Simplified ChineseLanguage patches, andThe font size is too small.Problem, I changed it and made a package for direct use, download tinymce Simplified Chinese Simplified instance.
Get the edited content:
VaR invalidcnt = tinymce. Get ('txtcontent'). getcontent (); // txtcontent is ID
VaR content = invalidcnt. replace (/<p> (& nbsp;) * (\ s) * (<br \/>) * <\/P>/ig ,""). replace (/(\ n) */ig ,""). replace (/(\ r) */ig ,"");
For more information about how to upload images, see this article.