mirror of
https://github.com/getgrav/grav.git
synced 2026-05-07 06:06:16 +02:00
renamed markdown_editor to content_editor
Signed-off-by: Andy Miller <rhuk@mac.com>
This commit is contained in:
@@ -67,14 +67,14 @@ form:
|
||||
default: 'en'
|
||||
help: PLUGIN_ADMIN.LANGUAGE_HELP
|
||||
|
||||
markdown_editor:
|
||||
content_editor:
|
||||
type: select
|
||||
label: PLUGIN_ADMIN.MARKDOWN_EDITOR
|
||||
label: PLUGIN_ADMIN.CONTENT_EDITOR
|
||||
size: medium
|
||||
classes: fancy
|
||||
data-options@: 'Grav\Plugin\Admin\Admin::markdownEditor'
|
||||
default: 'codemirror'
|
||||
help: PLUGIN_ADMIN.MARKDOWN_EDITOR_HELP
|
||||
data-options@: 'Grav\Plugin\Admin\Admin::contentEditor'
|
||||
default: 'default'
|
||||
help: PLUGIN_ADMIN.CONTENT_EDITOR_HELP
|
||||
|
||||
twofa_check:
|
||||
type: conditional
|
||||
|
||||
@@ -135,6 +135,16 @@ class UserObject extends FlexObject implements UserInterface, MediaManipulationI
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper to get content editor will fall back if not set
|
||||
*
|
||||
* @return String
|
||||
*/
|
||||
public function getContentEditor(): string
|
||||
{
|
||||
return $this->getProperty('content_editor', 'default');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get value by using dot notation for nested arrays/objects.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user