add css-class to textarea

This commit is contained in:
DanyaPostfactum 2012-10-01 16:35:23 +10:00
commit ddb40420cd
2 changed files with 3 additions and 2 deletions

View file

@ -90,7 +90,7 @@
height: 100%; height: 100%;
} }
.ace_editor > textarea { .ace_text-input {
position: absolute; position: absolute;
z-index: 0; z-index: 0;
width: 0.5em; width: 0.5em;
@ -105,7 +105,7 @@
overflow: hidden; overflow: hidden;
} }
.ace_editor > textarea.ace_composition { .ace_text-input.ace_composition {
background: #fff; background: #fff;
color: #000; color: #000;
z-index: 1000; z-index: 1000;

View file

@ -37,6 +37,7 @@ var dom = require("../lib/dom");
var TextInput = function(parentNode, host) { var TextInput = function(parentNode, host) {
var text = dom.createElement("textarea"); var text = dom.createElement("textarea");
text.className = "ace_text-input";
/*/ debug /*/ debug
text.style.opacity = 1 text.style.opacity = 1
text.style.background = "rgba(0, 250, 0, 0.3)" text.style.background = "rgba(0, 250, 0, 0.3)"