views:

181

answers:

1

I'm trying to create a textarea that can contain multiple colors. I created a div and in JS did the following:

element.unselectable = 'off';
element.contentEditable = true;

The div is now editable, but when I click in it, it gets a weird outline. How do I turn this off? alt text

+3  A: 

Try to set the outline-property in your CSS to "none":

<style type="text/css">
    * { outline: none; }
</style>
Mickel