From ddb40420cdfef819628105ad8afbd4edeeeca548 Mon Sep 17 00:00:00 2001 From: DanyaPostfactum Date: Mon, 1 Oct 2012 16:35:23 +1000 Subject: [PATCH] add css-class to textarea --- lib/ace/css/editor.css | 4 ++-- lib/ace/keyboard/textinput.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ace/css/editor.css b/lib/ace/css/editor.css index 015cff6c..7e0c3a76 100644 --- a/lib/ace/css/editor.css +++ b/lib/ace/css/editor.css @@ -90,7 +90,7 @@ height: 100%; } -.ace_editor > textarea { +.ace_text-input { position: absolute; z-index: 0; width: 0.5em; @@ -105,7 +105,7 @@ overflow: hidden; } -.ace_editor > textarea.ace_composition { +.ace_text-input.ace_composition { background: #fff; color: #000; z-index: 1000; diff --git a/lib/ace/keyboard/textinput.js b/lib/ace/keyboard/textinput.js index e41f3152..b8889fb1 100644 --- a/lib/ace/keyboard/textinput.js +++ b/lib/ace/keyboard/textinput.js @@ -37,6 +37,7 @@ var dom = require("../lib/dom"); var TextInput = function(parentNode, host) { var text = dom.createElement("textarea"); + text.className = "ace_text-input"; /*/ debug text.style.opacity = 1 text.style.background = "rgba(0, 250, 0, 0.3)"