twitter bootstrap - Prevent WYSIWYG from stripping html classes -


i using bootstrap 3 wysiwyg editor , , whenever paste html code after selecting html source button in editor.

<div class="col-sm-6"> element </div> <div class="col-sm-3"> element </div> <div class="col-sm-3"> <img src="somesource" class="img-resposnsive" /> </div> 

it strip down class on client side itself, while copy pasting, , pastes code :-

<div> element </div> <div> element </div> <div > <img src="somesource" /> </div> 

how can prevent doing so.

this wysiwyg editor, referencing here :- https://github.com/xing/wysihtml5

it looks this issue still open , proprosed solution hasn't been merged master author jakcarlton explains:

this change allows classes carried on using "*" in classes hash

"classes": { "*":1 }` allow classes carried over, otheriwse whitelisted

you manually merge changes , build source. or wait until merge approved!


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -