|
@@ -51,6 +51,7 @@ class CodeMirrorEditorFactory implements IEditorFactoryService {
|
|
|
* Create a new editor for inline code.
|
|
|
*/
|
|
|
newInlineEditor(options: CodeEditor.IOptions): CodeEditor.IEditor {
|
|
|
+ options.host.dataset.type = 'inline';
|
|
|
return new CodeMirrorEditor({
|
|
|
...options,
|
|
|
config: { ...this.inlineCodeMirrorConfig, ...options.config || {} }
|
|
@@ -61,6 +62,7 @@ class CodeMirrorEditorFactory implements IEditorFactoryService {
|
|
|
* Create a new editor for a full document.
|
|
|
*/
|
|
|
newDocumentEditor(options: CodeEditor.IOptions): CodeEditor.IEditor {
|
|
|
+ options.host.dataset.type = 'document';
|
|
|
return new CodeMirrorEditor({
|
|
|
...options,
|
|
|
config: { ...this.documentCodeMirrorConfig, ...options.config || {} }
|