Not working in my MVC3 Project #200

Open
sahilpopli opened this Issue Jan 17, 2013 · 1 comment

Projects

None yet

2 participants

@sahilpopli

i have attached these files so far
bootstrap-wysihtml5.css
jquery-1.7.2.min.js
wysihtml5-0.3.0.js
bootstrap-wysihtml5.js

in m project i am also using bootstrap

here is the initialization
<textarea id="textarea" placeholder="Description"></textarea>

<script> $('#textarea').wysihtml5() </script>

but it not working any idea
it is showing the defaulttextarea

@salixzs
salixzs commented Mar 18, 2013

Are you sure your textarea has this attribute:
<textarea id="textarea">.
If you have ID for your textarea element something else, it will not apply wysihtml5 to that text area.
If you have textarea another ID, use it in JavaScript line, like
$('#myownid').wysihtml5()

Also if you use Model in your view, you can use it this way
$('#@Html.IdFor(m => m.TextField)').wysihtml5()

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