Type: Boolean
, Object
Default: false
This setting allows you to connect Codemirror on the page for code highlighting when adding and editing the code block or in the source mode.
Redactor('#entry', {
codemirror: true
});
You can set Codemirror settings, like this:
Redactor('#entry', {
codemirror: {
lineNumbers: true
}
});
See a live example of how Codemirror works with Redactor.
Type: Object
Default: false
This setting allows you to specify the instance of Codemirror if it is already initialized in your application.
Redactor('#entry', {
codemirror: true,
codemirrorSrc: MyCodemirrorInstance
});