Comments 2ruben started the conversationApril 10, 2017 at 10:27pmHaving issue adding multiple wysihtml5 on a page. <textarea class="form-control wysihtml5" data-stylesheet-url="/css/bootstrap-wysihtml5-color.css" rows="20" name="one" id="one"></textarea> <textarea class="form-control wysihtml5" data-stylesheet-url="/css/bootstrap-wysihtml5-color.css" rows="20" name="two" id="two"></textarea> 2 toolbar appear on each one.[deleted] repliedApril 11, 2017 at 8:23amHi Ruben, I saw this is an error in our theme so to fix it just replace neon-custom.js: Download this file and replace it in this directory (of the theme): /assets/js On line 1173 change ".wysihtml5" to el: // Wysiwyg Editor if($.isFunction($.fn.wysihtml5)) { $(".wysihtml5").each(function(i, el) { var $this = $(el), stylesheets = attrDefault($this, 'stylesheet-url', '') $(".wysihtml5").wysihtml5({ stylesheets: stylesheets.split(',') }); }); } Like shown below: // Wysiwyg Editor if($.isFunction($.fn.wysihtml5)) { $(".wysihtml5").each(function(i, el) { var $this = $(el), stylesheets = attrDefault($this, 'stylesheet-url', '') $( el ).wysihtml5({ stylesheets: stylesheets.split(',') }); }); } This should work for you. 2ruben repliedApril 11, 2017 at 1:20pmThank you so much! This fixed my issue. I replaced all html assets/js in the entire theme. I hope that is what you mean?I tried it for the dashboard and it worked perfectly, thank you!.[deleted] repliedApril 12, 2017 at 7:30amHi Ruben,Yes that is just fine. That code was to explain how this works.I am glad that it worked for you. Have a great day there Sign in to reply ...
Having issue adding multiple wysihtml5 on a page.
<textarea class="form-control wysihtml5" data-stylesheet-url="/css/bootstrap-wysihtml5-color.css" rows="20" name="one" id="one"></textarea>
<textarea class="form-control wysihtml5" data-stylesheet-url="/css/bootstrap-wysihtml5-color.css" rows="20" name="two" id="two"></textarea>
2 toolbar appear on each one.
Hi Ruben,
I saw this is an error in our theme so to fix it just replace neon-custom.js:
Download this file and replace it in this directory (of the theme): /assets/js
On line 1173 change ".wysihtml5" to el:
Like shown below:
This should work for you.
Thank you so much! This fixed my issue. I replaced all html assets/js in the entire theme. I hope that is what you mean?
I tried it for the dashboard and it worked perfectly, thank you!.
Hi Ruben,
Yes that is just fine. That code was to explain how this works.
I am glad that it worked for you. Have a great day there