mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-27 06:01:54 +03:00
Added cm6 strategy for splitting and dyn. loading langs
Split out legacy modes to their own dynamically imported bundle to reduce main code bundle size.
This commit is contained in:
@ -200,6 +200,7 @@ export function markdownEditor(elem, onChange, domEventHandlers, keyBindings) {
|
||||
|
||||
// Create editor view, hide original input
|
||||
const ev = createView(config);
|
||||
setMode(ev, 'markdown', '');
|
||||
elem.style.display = 'none';
|
||||
|
||||
return ev;
|
||||
|
Reference in New Issue
Block a user