]>
BookStack Code Mirror - bookstack/blobdiff - resources/js/components/markdown-editor.js
projects
/
bookstack
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated tinymce code block handling to help prevent breaking history states
[bookstack]
/
resources
/
js
/
components
/
markdown-editor.js
diff --git
a/resources/js/components/markdown-editor.js
b/resources/js/components/markdown-editor.js
index bd107f2bf7a00f53ed3404a27c95bcf3c1c7d1c3..78581ec447f5cf099d64d681c976295d3c6875af 100644
(file)
--- a/
resources/js/components/markdown-editor.js
+++ b/
resources/js/components/markdown-editor.js
@@
-22,7
+22,6
@@
class MarkdownEditor {
this.displayStylesLoaded = false;
this.input = this.elem.querySelector('textarea');
this.displayStylesLoaded = false;
this.input = this.elem.querySelector('textarea');
- this.htmlInput = this.elem.querySelector('input[name=html]');
this.cm = code.markdownEditor(this.input);
this.onMarkdownScroll = this.onMarkdownScroll.bind(this);
this.cm = code.markdownEditor(this.input);
this.onMarkdownScroll = this.onMarkdownScroll.bind(this);
@@
-125,7
+124,6
@@
class MarkdownEditor {
// Set body content
this.displayDoc.body.className = 'page-content';
this.displayDoc.body.innerHTML = html;
// Set body content
this.displayDoc.body.className = 'page-content';
this.displayDoc.body.innerHTML = html;
- this.htmlInput.value = html;
// Copy styles from page head and set custom styles for editor
this.loadStylesIntoDisplay();
// Copy styles from page head and set custom styles for editor
this.loadStylesIntoDisplay();