renamed markdown_editor to content_editor

Signed-off-by: Andy Miller <rhuk@mac.com>
This commit is contained in:
Andy Miller
2020-05-26 08:16:37 -06:00
parent 5284717570
commit 22b493996c
2 changed files with 15 additions and 5 deletions

View File

@@ -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

View File

@@ -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.
*