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:
Dan Brown
2023-04-14 14:08:40 +01:00
parent fdda813d5f
commit 257a703878
12 changed files with 51 additions and 93 deletions

View File

@ -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;
}