Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple textarea in a page does not work #97

Closed
twocngdagz opened this issue Sep 12, 2014 · 4 comments
Closed

Multiple textarea in a page does not work #97

twocngdagz opened this issue Sep 12, 2014 · 4 comments

Comments

@twocngdagz
Copy link

If I do this,

$('.textarea').wysihtml5({
    "font-styles": true, //Font styling, e.g. h1, h2, etc. Default true
    "emphasis": true, //Italics, bold, etc. Default true
    "lists": true, //(Un)ordered lists, e.g. Bullets, Numbers. Default true
    "html": false, //Button which allows you to edit the generated HTML. Default false
    "link": false, //Button to insert a link. Default true
    "image": false, //Button to insert an image. Default true,
    "color": false, //Button to change color of font  
    "blockquote": true, //Blockquote  
  });
  $('.myarea').wysihtml5({
    "font-styles": true, //Font styling, e.g. h1, h2, etc. Default true
    "emphasis": true, //Italics, bold, etc. Default true
    "lists": true, //(Un)ordered lists, e.g. Bullets, Numbers. Default true
    "html": false, //Button which allows you to edit the generated HTML. Default false
    "link": false, //Button to insert a link. Default true
    "image": false, //Button to insert an image. Default true,
    "color": false, //Button to change color of font  
    "blockquote": true, //Blockquote  
  });

only the .textarea gets to initialized

@Waxolunist
Copy link
Owner

Which version are you using?
In version 0.3.3 this should work.
I assume because of your configuration that you are using 0.2.x. The 0.3.x versions do have a slightly different configuration (see https://github.com/Waxolunist/bootstrap3-wysihtml5-bower#buttons).
If there is not a reason to do so, I suggest upgrading to the latest version.

In the 0.3.0-wip (the development branch of the 0.3.x series) you find an example, using one textarea and two divs, but multiple textareas should work as well. See here https://github.com/Waxolunist/bootstrap3-wysihtml5-bower/blob/v0.3.0-wip/index-multi-dev.html

If the problem persists, ping me. I will let the issue in status open, until you close it.

@Waxolunist
Copy link
Owner

The latest 0.2.x version 0.2.11 does also have an example for multiple textareas. See here https://github.com/Waxolunist/bootstrap3-wysihtml5-bower/blob/master/index-multi-dev.html

Does that one work?

If not, please show me an example at jsfiddle or in any other way.

@twocngdagz
Copy link
Author

Thanks for this info

@Waxolunist
Copy link
Owner

Please contribute and tell us what was the source of your problem and how did you resolve it, and which version you use.

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

No branches or pull requests

2 participants