当前位置: 首页 > 文档资料 > tinyMCE 帮助文档 >

Code plugin

优质
小牛编辑
121浏览
2023-12-01

This plugin adds a toolbar button that allows a user to edit the HTML code hidden by the WYSIWYG view. It also adds the menu item Source code under the Tools menu.

Example
tinymce.init({
  selector: "textarea",  // change this value according to your HTML
  plugins: "code",
  toolbar: "code",
  menubar: "tools"
});