mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	feat(mobile): enforce classic editor
This commit is contained in:
		
							parent
							
								
									6f2538a070
								
							
						
					
					
						commit
						706b011b23
					
				@ -136,7 +136,7 @@ export default class ClassicEditorToolbar extends NoteContextAwareWidget {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    async #shouldDisplay() {
 | 
					    async #shouldDisplay() {
 | 
				
			||||||
        if (options.get("textNoteEditorType") !== "ckeditor-classic") {
 | 
					        if (utils.isDesktop() && options.get("textNoteEditorType") !== "ckeditor-classic") {
 | 
				
			||||||
            return false;
 | 
					            return false;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -136,7 +136,7 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    async initEditor() {
 | 
					    async initEditor() {
 | 
				
			||||||
        await libraryLoader.requireLibrary(libraryLoader.CKEDITOR);
 | 
					        await libraryLoader.requireLibrary(libraryLoader.CKEDITOR);
 | 
				
			||||||
        const isClassicEditor = options.get("textNoteEditorType") === "ckeditor-classic";
 | 
					        const isClassicEditor = utils.isMobile() || options.get("textNoteEditorType") === "ckeditor-classic";
 | 
				
			||||||
        const editorClass = isClassicEditor ? CKEditor.DecoupledEditor : CKEditor.BalloonEditor;
 | 
					        const editorClass = isClassicEditor ? CKEditor.DecoupledEditor : CKEditor.BalloonEditor;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        const codeBlockLanguages = buildListOfLanguages();
 | 
					        const codeBlockLanguages = buildListOfLanguages();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user