You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
801 B

= Code plugin
:navtitle: Code
:description: Edit your content's HTML source.
:keywords: wysiwyg, source, html, edit
:pluginname: Code
:plugincode: code
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.
== Basic setup
[source,js]
----
tinymce.init({
selector: 'textarea', // change this value according to your HTML
plugins: 'code',
toolbar: 'code',
});
----
include::partial$misc/code-dialog-and-selection-state.adoc[]
include::partial$misc/plugin-toolbar-button-id-boilerplate.adoc[]
include::partial$misc/plugin-menu-item-id-boilerplate.adoc[]
== Commands
The Code plugin provides the following {productname} command.
include::partial$commands/code-cmds.adoc[]