Add “code” button to wordpress tinyMCE

前端 未结 3 460
天涯浪人
天涯浪人 2021-01-14 17:54

I\'ve been following this tutorial, and many like it: http://codex.wordpress.org/TinyMCE_Custom_Buttons

function myplugin_addbuttons() {
   // Don\'t bother          


        
3条回答
  •  北恋
    北恋 (楼主)
    2021-01-14 18:49

    I've written a plugin that does exactly that, i.e. it provides a button named 'codeElement' which users can use to wrap text in a code element or tag.

    • TinyMCE Plugin page on Sourceforge
    • direct download

提交回复
热议问题