To be more specific, you can also obtain the following same results: [css]\tinymce h2{text decoration: underline;} [\/css] easy? I told you. 3.3 It is very easy to modify styles in the word press editor by using the front-end style sheet by default, but if you want to implement all styles manually, you will soon get bored. The good news is that this is not necessary. There is a better way@ With the help of import rules, you can easily import front-end stylesheets. This will use all the formatting of the first page in the editor. The subthemes of twenty fifth work as follows: [css]@import URL (‘..\/twentyfifteen\/style.css’); [\/css] of course, not all styles are useful for editors. As a result, it may not seem attractive at first. Therefore, in order to make users more friendly, some adjustments need to be made. For example, my editor styles. If you add the following line to CSS: [css] body {background color: \fff; margin: 20px 40px; maximum width: 640px;} [\/css] looks much better than before. Don’t you agree? Instead of importing the entire stylesheet, you can also use the editor page of twenty fifth as a blueprint. This makes it easy to understand all the important styles. As I mentioned in the WordPress editor, TinyMCE is a stand-alone product. WordPress developers set it up in a reasonable way, including all available formatting options. But in fact, the TinyMCE editor can use more buttons and formatting options than before. Don’t you believe me? Here is a list. In fact, in WordPress 3.9, some of the buttons provided in the WordPress editor disappeared. The current editor title is: What should I do to include the append button? Nothing is easier than this. We will quickly demonstrate how to add the first two buttons again in the third line at the top of the editor. Male [php] function add\editor\u button ($button) {$buttons[]= \
In, you can register many custom styles. I want to add a highlighter and a green button to highlight important text paragraphs. To add these styles, add my functions here. Paste into PHP. [php]\/\/wordpress editor custom styles add function my\u mce\u before\init\insert\u formats ($init\u array) {$style\u formats= array (\/ \/ this is a custom style). Sort (\