techker Posted August 22, 2015 Share Posted August 22, 2015 Hey guys,i noticed that when i try to add more then one ID:wysiwyg on my textarea it only works on one.. is there a way to have lets say 3 wysiwyg textarea?? do i need to add a class wysiwyg2 wysiwyg3.... Quote Link to comment Share on other sites More sharing options...
scootstah Posted August 22, 2015 Share Posted August 22, 2015 ID's are unique, you can't use them on multiple elements on the same page. Classes can be reused though, so just give each textarea a "wysiwyg" class and use that for the selector. You haven't mentioned what you're using for a WSYIWYG, so that's about as much detail as I can give. Quote Link to comment Share on other sites More sharing options...
techker Posted August 23, 2015 Author Share Posted August 23, 2015 the textare is for a dealership script im doing for my body..just to add cars.. see,so i would change the class for WSYIWYG?but then the others? <code> <label>SHORT DESCRITION</label> <textarea name="Description_short" cols="55" rows="4" class="text-input textarea" ></textarea> <label>SHORT FR</label> <textarea name="Description_short_FR" cols="55" rows="4" class="text-input textarea" ></textarea> <label>FULL DESCRIPTION</label> <textarea name="Description_long" cols="55" rows="6" class="text-input textarea" ></textarea> <label>FULL DESCRIPTION FR</label> <textarea name="Description_long_FR" cols="55" rows="6" class="text-input textarea" ></textarea> </code> Quote Link to comment Share on other sites More sharing options...
CroNiX Posted August 23, 2015 Share Posted August 23, 2015 We need to know what javascript wysiwyg editor you are using on these textareas, and also the js code you are using. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.