This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Xitara
Hi, I patched the original RichEditor to use "enter: ENTER_BR" in fields.yaml 'cause I didn't found any solution to do it in original config. There a three files to change:
modules/backend/formwidgets/RichEditor.php, line 83
if (isset($this->formField->config['enter'])) {
$this->vars['enter'] = $this->formField->config['enter'];
}
modules/backend/formwidgets/richeditor/partials/_richeditor.htm, line 24
<?php if (isset($enter)): ?>data-option-enter="<?= $enter; ?>"<?php endif; ?>
modules/backend/formwidgets/richeditor/assets/js/build-min.js after "var froalaOptions = { ... }"
if (this.options.optionEnter) {
froalaOptions.enter = this.options.optionEnter;
}
I think, this is a cool feature for the next release of October CMS ;)
1-1 of 1