WYSIWYG Bold effect on a DIV, Span etc.


/ Published in: JavaScript
Save to your folder(s)

Create a div with 'news_bulletin_div' as ID and add css as you like, add Bold button infront of it using float (or what ever where ever)

Add toggleSelectionBold on that button.

Now select a part of text within the DIV and click bold. It will bold it, again select the same bold text and click bold button and it will un-bold the selection.

Cheers.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.