mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	client: Basic integration of classic editor w/ no attribute editor
This commit is contained in:
		| @@ -341,26 +341,6 @@ export default class AttributeEditorWidget extends NoteContextAwareWidget { | ||||
|     } | ||||
|  | ||||
|     async initEditor() { | ||||
|         await libraryLoader.requireLibrary(libraryLoader.CKEDITOR); | ||||
|  | ||||
|         this.$widget.show(); | ||||
|  | ||||
|         this.$editor.on("click", e => this.handleEditorClick(e)); | ||||
|  | ||||
|         /** @property {BalloonEditor} */ | ||||
|         this.textEditor = await BalloonEditor.create(this.$editor[0], editorConfig); | ||||
|         this.textEditor.model.document.on('change:data', () => this.dataChanged()); | ||||
|         this.textEditor.editing.view.document.on('enter', (event, data) => { | ||||
|             // disable entering new line - see https://github.com/ckeditor/ckeditor5/issues/9422 | ||||
|             data.preventDefault(); | ||||
|             event.stop(); | ||||
|         }, {priority: 'high'}); | ||||
|  | ||||
|         // disable spellcheck for attribute editor | ||||
|         this.textEditor.editing.view.change(writer => writer.setAttribute('spellcheck', 'false', this.textEditor.editing.view.document.getRoot())); | ||||
|  | ||||
|         //await import(/* webpackIgnore: true */'../../libraries/ckeditor/inspector'); | ||||
|         //CKEditorInspector.attach(this.textEditor); | ||||
|     } | ||||
|  | ||||
|     dataChanged() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user