Open IntellectProductions opened 10 years ago
And setup like how it normally is just by adding a class to the textarea tag of wysiwyg, and in my universal js file, I have:
$('.wysiwyg').wysiwyg();
It works when there is only one textarea with that class, but as soon as I add a second one, it throws the above error. Granted, these text areas are loaded with ajax... but I also called the wysiwyg() method on ajaxStop().
Hi @IntellectProductions
You might want to take a look on this #52
So I viewed this issue:
https://github.com/mindmup/bootstrap-wysiwyg/pull/103
However, he didn't even post any code examples so I couldn't really understand what he meant by wrapper to begin with..
This is what I'm using:
Then I have another textarea on the same page:
However, it still throws the typical multiple instance error:
Uncaught TypeError: Cannot read property 'ownerDocument' of undefined