简体   繁体   中英

tinymce change default style

im trying to use tinymce to add and edit a blog with a different default style, i managed to load the font and text size when the editor loads but it doesnt apply to the code unless i select the text and apply the style again

for example this:

在此处输入图像描述

should see like this without user interactions

在此处输入图像描述

You have to include some css files to you're config

example

tinymce.init({
selector: 'textarea.editme',    
content_css: ['/css/style2.css','/css/cfcms.css'],

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM