mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-06 12:02:45 +03:00
MD Editor: Added plaintext/cm switching
Also aligned the construction of the inputs where possible.
This commit is contained in:
@@ -10,6 +10,10 @@ export class CodemirrorInput implements MarkdownEditorInput {
|
||||
this.cm = cm;
|
||||
}
|
||||
|
||||
teardown(): void {
|
||||
this.cm.destroy();
|
||||
}
|
||||
|
||||
focus(): void {
|
||||
if (!this.cm.hasFocus) {
|
||||
this.cm.focus();
|
||||
|
Reference in New Issue
Block a user