Skip to content

Commit

Permalink
* fixed forgotten renamed a parameter
Browse files Browse the repository at this point in the history
* adjusted warning text for rendering options
  • Loading branch information
imfx77 committed Apr 5, 2024
1 parent 3efed7e commit 312d883
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Locale/en_GB/translations.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
* <span style="border: 2px solid red; padding: 2px">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 !</span>',
* <span style="border: 2px solid red; padding: 2px">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 !</span><br>⚠ 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.
Expand Down
3 changes: 2 additions & 1 deletion Locale/en_US/translations.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
* <span style="border: 2px solid red; padding: 2px">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 !</span>',
* <span style="border: 2px solid red; padding: 2px">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 !</span><br>⚠ 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.
Expand Down
2 changes: 1 addition & 1 deletion Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));

Expand Down

0 comments on commit 312d883

Please sign in to comment.