editor_config.php missing in 5.7.4.2

Permalink
Hi

Why is in 5.7.4.2 suddenly the concrete/elements/editor_config.php missing? It was there in the version before. Has now been removed on purpose or....?

I get an error when calling an own dashboard module that tries to access the /edit path telling me that this file is missing. If I copy and paste it from the concrete version before it all works though....

Anyone knows something about this?

 
andrew replied on at Permalink Reply
andrew
The editor_config.php element was removed in favor of a better way of providing rich text editor support in 5.7.4. This way allows developers to specify which plugins they want to use, etc... and potentially even support multiple editors at some point in the future
Kiesel replied on at Permalink Reply
Thanks Andrew

But how do I get now a rich text editor? Does that mean there is no native support from concrete5 anymore to one and I have to dig out one myself?

---

Sorry, already found it:
$editor = Core::make('editor');
echo $editor->outputStandardEditor('fieldname', $fieldcontent);


Can be found here for anyone else who may need that:
https://www.concrete5.org/documentation/developers/5.7/interface-cus...
MrKDilkington replied on at Permalink Best Answer Reply
MrKDilkington
@Kiesel

Just to add, there are two methods you can use. The difference is one has custom styles and the other does not.

$editor = Core::make('editor');
echo $editor-> outputBlockEditModeEditor('content', $content);

$editor = Core::make('editor');
echo $editor->outputStandardEditor('content', $content);

outputStandardEditor()
- does not have custom styles or concrete5 specific features
- includes all enabled plugins

outputBlockEditModeEditor()
- includes custom styles
- includes all enabled plugins
Kiesel replied on at Permalink Reply
Thank you. I was wondering about that. Good to know!