Source

source#

Type: boolean

Default: true

Enables HTML source mode. When true, the html toolbar button is available and toggles between the visual editor and a raw HTML textarea.

When false, the button is hidden and source mode cannot be opened from the UI.

When codemirror is enabled, source mode uses CodeMirror instead of a plain <textarea>.

const app = Redactor('#entry', {
  source: false
});