Plugin works only with single-item selectors #194

Open
jhrabows opened this Issue Jan 3, 2013 · 2 comments

3 participants

@jhrabows

If the selector in $('.textarea').wysihtml5(); matches multiple elements the following error is thrown:

An invalid or illegal string was specified" code: "12

and only the first item becomes an editor.

You can create multiple editors but only using something like this:

$('.textarea').each(function(){
$(this).wysihtml5();
});

@bradt

Thanks this saved me some serious time!

@vyorkin

thanks, you saved my time too, it definitely should be in wiki or should be extended to support multiple elements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment