mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-20 15:09:38 +00:00
Removed some old front-end md rendering elements
Also ensured revisions were not created more often than expected. Summary field null check was triggering revision save even when empty since it was still in request. Related to #1846
This commit is contained in:
parent
a98fc71720
commit
5323cb5224
3 changed files with 2 additions and 6 deletions
resources/js/components
|
@ -22,7 +22,6 @@ class MarkdownEditor {
|
|||
|
||||
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);
|
||||
|
@ -125,7 +124,6 @@ class MarkdownEditor {
|
|||
// 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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue