fix(minor): wrap text in markdown editor
This commit is contained in:
parent
85f9a7a37d
commit
dbc7a7eb08
1 changed files with 2 additions and 0 deletions
|
|
@ -6,6 +6,8 @@ frappe.ui.form.ControlMarkdownEditor = frappe.ui.form.ControlCode.extend({
|
|||
this.ace_editor_target.wrap(`<div class="${this.editor_class}-container">`);
|
||||
this.markdown_container = this.$input_wrapper.find(`.${this.editor_class}-container`);
|
||||
|
||||
this.editor.getSession().setUseWrapMode(true);
|
||||
|
||||
this.showing_preview = false;
|
||||
this.preview_toggle_btn = $(`<button class="btn btn-default btn-xs ${this.editor_class}-toggle">${__('Preview')}</button>`)
|
||||
.click(e => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue