mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-18 10:22:28 +08:00
Addressed existing cm6 todos
- Updated clipboard handling - Removed old clipboard package for browser-native API. - Updated codemirror editor events to use new props for new data types.
This commit is contained in:
@ -64,11 +64,10 @@ export async function init(editor) {
|
||||
domEventHandlers,
|
||||
provideKeyBindings(editor),
|
||||
);
|
||||
window.cm = cm;
|
||||
|
||||
// Will force to remain as ltr for now due to issues when HTML is in editor.
|
||||
// TODO
|
||||
// cm.setOption('direction', 'ltr');
|
||||
// Add editor view to window for easy access/debugging.
|
||||
// Not part of official API/Docs
|
||||
window.mdEditorView = cm;
|
||||
|
||||
return cm;
|
||||
}
|
Reference in New Issue
Block a user