- Make application/src/Editor/RedactorEditor.php
- Override editor binding from application/bootstrap/app.php
Customizing the Redactor Editor in #concrete5
<?php | |
namespace Application\Src\Editor; | |
class RedactorEditor extends \Concrete\Core\Editor\RedactorEditor | |
{ | |
protected function getEditor($key, $content = null, $options = array()) | |
{ | |
// Stop converting divs to paragraphs | |
$options['replaceDivs'] = false; | |
return parent::getEditor($key, $content, $options); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment