TerryMooreII / angular-wysiwyg

An AngularJS WYSIWYG directive that multiple instances and two-way data-binding.
MIT License
121 stars 75 forks source link

PLEASE FIX :::: IE Bold Issue #54

Open klipmaniac opened 9 years ago

klipmaniac commented 9 years ago

Chrome is fine. In IE as soon as you mouse click in the textarea of the WYSIWYG, BOLD is highlighted automatically without any typing or any current text in the textarea, and if you type something and highlight your text and then click BOLD it will not bold. All the other tools seem to work fine (although changing font color seems not to work either in IE). Please advise. Thanks

iebold1 iebold2

hoangtuan438 commented 8 years ago

I tested on firefox and got the same problem with klipmaniac. I reviewed the code and saw "scope.cmdState('bold')" always return "true" Can you help me to solve this problem

When I run your demo, it works perfectly on firefox. But when I add it to my project, the "bold" is always active. I don't know why. Please help me for that

Thanks for your help

hoangtuan438 commented 8 years ago

Hi @klipmaniac ,

I think I know what problem here. It happens because we have a style "font-weight" for the parent DOM Just remove this style, you will solve your problem. It solved my problem :)