From 312d883538af9eeb9d06005318f64db431aee4bc Mon Sep 17 00:00:00 2001 From: "Im[F(x)]" Date: Fri, 5 Apr 2024 10:16:08 +0300 Subject: [PATCH] * fixed forgotten renamed a parameter * adjusted warning text for rendering options --- Locale/en_GB/translations.php | 3 ++- Locale/en_US/translations.php | 3 ++- Plugin.php | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Locale/en_GB/translations.php b/Locale/en_GB/translations.php index 54a6237..fb2b7a4 100644 --- a/Locale/en_GB/translations.php +++ b/Locale/en_GB/translations.php @@ -53,7 +53,8 @@ 'WysiwygMDEditor_SETTINGS_RENDERING_DESCR' => 'Choose whether to use custom rendering for markdown fields. * Rendering feature is implemented entirely client side, it uses JavaScript and utilizes a specific editor visualization. * All markdown fields on the page will be processed, including those that are dynamically created or changed. Loading the page might be a bit slow if there are many of them. -* If you have the **`MarkdownPlus`** plugin installed, then enabling this rendering feature will **`CONFLICT or OVERRIDE`** it\'s functionality, depending on the order in which the plugins are loaded !', +* If you have the **`MarkdownPlus`** plugin installed, then enabling this rendering feature will **`CONFLICT or OVERRIDE`** it\'s functionality, +depending on the order in which the plugins are loaded !
⚠ So, **make up your mind** which one you prefer to use ! ⚠', 'WysiwygMDEditor_SETTINGS_RENDERING_ENABLE_EASYMDE' => 'Enable markdown rendering with EasyMDE', 'WysiwygMDEditor_SETTINGS_RENDERING_EASYMDE_DESCR' => 'Rendered markdown fields will look like the preview pane of the EasyMDE editor. * The render theme can is configured independently of the selected theme for the EasyMDE editor. diff --git a/Locale/en_US/translations.php b/Locale/en_US/translations.php index 54a6237..fb2b7a4 100644 --- a/Locale/en_US/translations.php +++ b/Locale/en_US/translations.php @@ -53,7 +53,8 @@ 'WysiwygMDEditor_SETTINGS_RENDERING_DESCR' => 'Choose whether to use custom rendering for markdown fields. * Rendering feature is implemented entirely client side, it uses JavaScript and utilizes a specific editor visualization. * All markdown fields on the page will be processed, including those that are dynamically created or changed. Loading the page might be a bit slow if there are many of them. -* If you have the **`MarkdownPlus`** plugin installed, then enabling this rendering feature will **`CONFLICT or OVERRIDE`** it\'s functionality, depending on the order in which the plugins are loaded !', +* If you have the **`MarkdownPlus`** plugin installed, then enabling this rendering feature will **`CONFLICT or OVERRIDE`** it\'s functionality, +depending on the order in which the plugins are loaded !
⚠ So, **make up your mind** which one you prefer to use ! ⚠', 'WysiwygMDEditor_SETTINGS_RENDERING_ENABLE_EASYMDE' => 'Enable markdown rendering with EasyMDE', 'WysiwygMDEditor_SETTINGS_RENDERING_EASYMDE_DESCR' => 'Rendered markdown fields will look like the preview pane of the EasyMDE editor. * The render theme can is configured independently of the selected theme for the EasyMDE editor. diff --git a/Plugin.php b/Plugin.php index b2e728f..4bfc101 100644 --- a/Plugin.php +++ b/Plugin.php @@ -43,7 +43,7 @@ public function initialize() } } - if ($this->configModel->get('WysiwygMDEditor_enable_rendering_easymde', '0') == '1') { + if ($this->configModel->get('WysiwygMDEditor_enable_easymde_rendering', '0') == '1') { //CSS $this->hook->on('template:layout:css', array('template' => 'plugins/WysiwygMDEditor/Assets/easymde/container.css'));