mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-06 07:17:16 +02:00
renamed markdownEditor->contentEditor
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user