app/packs/js/controllers/fields/simple_mde_controller.js in avo-1.3.0 vs app/packs/js/controllers/fields/simple_mde_controller.js in avo-1.3.1
- old
+ new
@@ -6,12 +6,21 @@
get view() {
return this.elementTarget.dataset.view
}
+ get componentOptions() {
+ try {
+ return JSON.parse(this.elementTarget.dataset.componentOptions)
+ } catch (error) {
+ return {}
+ }
+ }
+
connect() {
const options = {
element: this.elementTarget,
+ spellChecker: this.componentOptions.spell_checker,
}
if (this.view === 'show') {
options.toolbar = false
options.status = false