From b23019609a86f840a5a2ee9eca4fc6d9b3e266fd Mon Sep 17 00:00:00 2001 From: Nicolae Gabriel Date: Mon, 5 Dec 2016 17:51:01 +0200 Subject: [PATCH] #325 Text Area multi editor not working properly!!!! - Now you can add multiple editors in the same page working just fine, all you need to do is to set data-target from "
" the same as the id "
" ( editor-one ) here. --- production/form.html | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/production/form.html b/production/form.html index 8fa44f14..86bfa518 100755 --- a/production/form.html +++ b/production/form.html @@ -992,7 +992,7 @@
-
+
-
+
@@ -1431,10 +1431,15 @@ initToolbarBootstrapBindings(); - $('#editor').wysiwyg({ - fileUploadError: showErrorAlert - }); - + $('.editor-wrapper').each(function(){ + var id = $(this).attr('id'); //editor-one + + $(this).wysiwyg({ + toolbarSelector: '[data-target="#' + id + '"]', + fileUploadError: showErrorAlert + }); + }); + window.prettyPrint; prettyPrint(); });