Skip to content

Latest commit

 

History

History
86 lines (58 loc) · 2.42 KB

File metadata and controls

86 lines (58 loc) · 2.42 KB

advcode_inline

As part of the {productname} 6.3 release, the {pluginname} plugin includes a new option, advcode_inline, that allows users to open the Enhanced Code Editor within {productname}’s existing editor space instead of being displayed in a separate dialog box.

Type: Boolean

Possible values: true, false

Default value: false

Example: basic setup

tinymce.init({
  selector: 'textarea', // change this value according to your HTML
  plugins: 'advcode',
  advcode_inline: true,
  toolbar: 'code',
});

advcode_prettify_getcontent

As part of the {productname} 7.3 release, the {pluginname} plugin includes a new option, advcode_prettify_getcontent, which is set to false by default.

When this option is set to true it will format the HTML code when editor.getContent is called.

This is equivalent to retrieving formatted content by calling tinymce.activeEditor.getContent({ prettify: true }), regardless of the option’s status.

Type: Boolean

Default value: false

Possible values: true, false

Example: basic setup

tinymce.init({
  selector: 'textarea', // change this value according to your HTML
  plugins: 'advcode',
  advcode_prettify_getcontent: true,
  toolbar: 'code',
});
Important
If existing HTML content in the database is not well-formatted or has inconsistent indentation, enabling this option may change the formatting of previously saved content which may be undesirable in some cases.

advcode_prettify_editor

As part of the {productname} 7.3 release, the {pluginname} plugin includes a new option, advcode_prettify_editor, which is set to true by default.

By default, any code rendered inside Enhanced Coded Editor will be formatted with correct indentation.

Type: Boolean

Default value: true

Possible values: true, false

Example: basic setup

tinymce.init({
  selector: 'textarea', // change this value according to your HTML
  plugins: 'advcode',
  advcode_prettify_editor: true, // default value
  toolbar: 'code',
});
Note
To disable this default behavior, set the advcode_prettify_editor option to false.