mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-27 06:01:54 +03:00
Split out codemirror JS to its own module
Added a cache-compatible module loading system/pattern to the codebase.
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
import Clipboard from "clipboard/dist/clipboard.min";
|
||||
import Code from "../services/code";
|
||||
import * as DOM from "../services/dom";
|
||||
import {scrollAndHighlightElement} from "../services/util";
|
||||
|
||||
@ -9,7 +8,7 @@ class PageDisplay {
|
||||
this.elem = elem;
|
||||
this.pageId = elem.getAttribute('page-display');
|
||||
|
||||
Code.highlight();
|
||||
window.importVersioned('code').then(Code => Code.highlight());
|
||||
this.setupPointer();
|
||||
this.setupNavHighlighting();
|
||||
this.setupDetailsCodeBlockRefresh();
|
||||
|
Reference in New Issue
Block a user