From eb31e298dacd7db84ba72fc57aab3ab98e0a66c2 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Wed, 30 Jan 2019 17:53:10 +0100 Subject: [PATCH] Bug fix to prevent jQuery add extra code --- bl-kernel/admin/views/edit-content.php | 2 +- bl-kernel/admin/views/new-content.php | 2 +- bl-plugins/simplemde/plugin.php | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/bl-kernel/admin/views/edit-content.php b/bl-kernel/admin/views/edit-content.php index bfbbbd3a..9cf58452 100644 --- a/bl-kernel/admin/views/edit-content.php +++ b/bl-kernel/admin/views/edit-content.php @@ -347,7 +347,7 @@ echo Bootstrap::formOpen(array( -
contentRaw(false) ?>
+ diff --git a/bl-kernel/admin/views/new-content.php b/bl-kernel/admin/views/new-content.php index f3958ec1..87f7e49e 100644 --- a/bl-kernel/admin/views/new-content.php +++ b/bl-kernel/admin/views/new-content.php @@ -318,7 +318,7 @@ echo Bootstrap::formOpen(array( -
+ diff --git a/bl-plugins/simplemde/plugin.php b/bl-plugins/simplemde/plugin.php index 84226e46..e4dc79bd 100644 --- a/bl-plugins/simplemde/plugin.php +++ b/bl-plugins/simplemde/plugin.php @@ -89,10 +89,7 @@ class pluginsimpleMDE extends Plugin { }'.PHP_EOL; $html .= '$(document).ready(function() { '.PHP_EOL; - $html .= ' - var currentContent = $( "#jseditor" ).html(); - $( "#jseditor" ).replaceWith( "" ); - simplemde = new SimpleMDE({ + $html .= 'simplemde = new SimpleMDE({ element: document.getElementById("jseditor"), status: false, toolbarTips: true,