You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
Merge branch 'release-3.4' into dev
This commit is contained in:
@@ -61,6 +61,12 @@ const useWebViewSetup = ({
|
||||
// Since the editor content is included in editorOptions, for large documents,
|
||||
// creating the initial injected JS is potentially expensive.
|
||||
afterLoadFinishedJs.current = () => `
|
||||
if (typeof window.markdownEditorBundle === 'undefined') {
|
||||
${shim.injectedJs('markdownEditorBundle')};
|
||||
window.markdownEditorBundle = markdownEditorBundle;
|
||||
markdownEditorBundle.setUpLogger();
|
||||
}
|
||||
|
||||
if (!window.cm) {
|
||||
const parentClassName = ${JSON.stringify(editorOptions?.parentElementOrClassName)};
|
||||
const foundParent = !!parentClassName && document.getElementsByClassName(parentClassName).length > 0;
|
||||
|
||||
Reference in New Issue
Block a user