Skip to content

Commit

Permalink
Add multilingual new css layout support
Browse files Browse the repository at this point in the history
  • Loading branch information
AIC-BV authored Oct 19, 2023
1 parent 8f7c656 commit ed008c2
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -571,9 +571,12 @@
this.setFullscreen(!this.isFullscreen)
if (this.isPreview) {
this.togglePreview()
} else {
this.setMLButton()
}

this.editor.focus()

$('[data-button-code="fullscreen"]', this.$toolbar).toggleClass('active')
}

Expand All @@ -585,6 +588,7 @@
}
else {
this.editor.focus()
this.setMLButton()
}

this.$el.toggleClass('is-preview', this.isPreview)
Expand All @@ -593,6 +597,13 @@
$('[data-button-code="preview"]', this.$toolbar).toggleClass('active')
}

MarkdownEditor.prototype.setMLButton = function() {
if (this.$el.attr('id').substr(0, 2) === 'ML') {
var input = this.$el.find('.ace_text-input')
if (input) setTimeout(function() { input.keyup() }, 0)
}
}

MarkdownEditor.prototype.insertLine = function(template) {
var editor = this.editor,
pos = this.editor.getCursorPosition()
Expand Down

0 comments on commit ed008c2

Please sign in to comment.