renamed markdownEditor->contentEditor

This commit is contained in:
Andy Miller
2020-05-26 08:19:26 -06:00
parent 59437578a4
commit e9adc8f8f3
3 changed files with 5 additions and 5 deletions

View File

@@ -3,7 +3,7 @@
1. [](#new)
* Added ability to set a preferred markdown editor in user profile
* Added new `onAdminListMarkdownEditors` event to add a custom editor to the list of available
* Added new `onAdminListContentEditors` event to add a custom editor to the list of available
1. [](#bugfix)
* Use `Pages::find()` instead of `Pages::dispatch()` as we do not want to redirect out of admin
* Fixed broken `parent` field when using the old pages

View File

@@ -199,14 +199,14 @@ class Admin
$debugger->addMessage($message, 'debug', $data);
}
public static function markdownEditor()
public static function contentEditor()
{
$options = [
'default' => 'Default',
'codemirror' => 'CodeMirror'
];
$event = new Event(['options' => &$options]);
Grav::instance()->fireEvent('onAdminListMarkdownEditors', $event);
Grav::instance()->fireEvent('onAdminListContentEditors', $event);
return $options;
}

View File

@@ -952,5 +952,5 @@ PLUGIN_ADMIN:
CUSTOM_PRESETS: "Custom Presets"
CUSTOM_PRESETS_HELP: "Drag-n-drop a theme .yaml file here, or you can create an array of presets with text based keys"
GENERAL: "General"
MARKDOWN_EDITOR: "Markdown Editor"
MARKDOWN_EDITOR_HELP: "Custom editors can be preferred for markdown editing"
CONTENT_EDITOR: "Content Editor"
CONTENT_EDITOR_HELP: "Custom editors can be preferred for content editing"