Some notes about the TINYMCE

Source: Internet
Author: User

Before I can read some of the English, but there is always no global view, so that I have always had some doubts about the use of TINYMCE: That is why I added in the TINYMCE initialization, such as font, font size and other settings buttons, but why in front
There is no way to reality, the original error is that I did not set the element in the toolbar or in the menu bar settings in the properties of the display, simply throw the setting to Tinymce.init (), not in the toolbar or menubar add
Add in.

My TINYMCE settings

Tinymce.init ({selector: "TEXTAREA#ELM1", Language: "Zh_cn", width:600, height:300, plugins: ["advlist autolink link ima GE lists Charmap print preview hr anchor PageBreak spellchecker "," Searchreplace wordcount visualblocks visualchars Code FU Llscreen insertdatetime Media nonbreaking "," Save table ContextMenu directionality Emoticons template paste TextColor "], t OOLBAR1: "InsertFile undo Redo | Styleselect | Bold Italic | AlignLeft aligncenter alignright alignjustify | Bullist numlist outdent Indent | Link Image | Print Preview Media fullpage | ForeColor BackColor Emoticons | Fontsizeselect | Fontselect ", Style_formats: [{title: ' Bold text ', inline: ' B '},{title: ' Red text ', inline: ' span ', styles: {color: ' #ff000 0 '}},{title: ' Red header ', Block: ' H1 ', styles: {color: ' #ff0000 '}},{title: ' Example 1 ', inline: ' span ', classes: ' Example 1 '},{title: ' Example 2 ', inline: ' span ', classes: ' Example2 '},{title: ' Table Styles '},{title: ' table row 1 ', selector: ' TR ', classes: ' Tablerow1 '}], FontsizE_formats: "8px 10px 12px 14px 18px 24px 36px", Font_formats: "Song body = song body;" + "Microsoft Jas Black =microsoft Yahei;" + "blackbody = blackbody;" + "imitation = imitation;" + "  italics = italics; "+" script = official script; "+" Young circle = Young circle; "+" ARIAL=ARIAL,HELVETICA,SANS-SERIF; "+" Comic sans ms=comic sans ms,sans-serif; "+" Courier New=courier new,courier; "+" TAHOMA=TAHOMA,ARIAL,HELVETICA,SANS-SERIF; "+" Times new roman=times new Roman,times; "+" Ver Dana=verdana,geneva; "+" webdings=webdings; "+" Wingdings=wingdings,zapf Dingbats "});

Demo Download: Http://files.cnblogs.com/files/xxjudfc/demo.rar

Reference notes


Thank you: http://bbs.csdn.net/topics/390845082 give me the hint

Some notes about the TINYMCE

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.