简体   繁体   中英

Apply format style to tinymce

I'm trying to insert style in my tinymce. I want to format text in pre tags with class pretyprint. I managed to add pre tags, but class isn't added. it adds class if i change pre to eg div

{title: 'code', 'inline-block': 'pre', classes: 'prettyprint'},
        {title: 'code', 'block':'pre', classes:'prettyprint linenum'},

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