I am trying to create a text box that can contain several colors. I created a div and in JS did the following:
element.unselectable = 'off'; element.contentEditable = true;
Now the div is now editable, but when I click on it, it gets a weird outline. How to disable this? alt text http://www.benmccann.com/test/contentEditable.png
Try setting the outline property in your CSS to "none":
<style type="text/css"> * { outline: none; } </style>
Source: https://habr.com/ru/post/1723446/More articles:Why stdout decoding fails when adding carriage return? - javaPublished TFS Manual Mstest Results? - command-lineКросс-платформенная обработка маршрута Unicode - c++Order from IF EXISTS - sqlWhy is a form class in a Windows Form application declared partial? - c #Postgresql: WHERE IN alternative matching WHERE NOT IN - sqlASP.NET RenderControl or RenderChildren Error - asp.netProblem installing .cab file (ActiveX) in Windows Vista and 7 - internet-explorerObservableCollection which user should run my nginx or php-fpm processes - nginxAll Articles