(option, value)
| 198 | } |
| 199 | |
| 200 | setOption (option, value) { |
| 201 | if (option === 'show_errors') { |
| 202 | this.options.show_errors = value |
| 203 | this.onChange() |
| 204 | } else { |
| 205 | /* Only the `show_errors` option is supported for now */ |
| 206 | throw new Error(`Option ${option} must be set during instantiation and cannot be changed later`) |
| 207 | } |
| 208 | |
| 209 | return this |
| 210 | } |
| 211 | |
| 212 | getEditorsRules () { |
| 213 | const extendRule = (rules, editorClass) => editorClass.rules ? extend(rules, editorClass.rules) : rules |