Tinymce editor's simplified Chinese and font are too small patch

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.