0

If anyone has figured out how to remove the outline that Chrome & Safari add on focus to a textarea, specifically in ckeditor, I'd love to hear it. I've applied multiple variants of "outline:none" to:

  1. A custom CSS file I defined in config.js
  2. The editor.css file of the skin I'm using
  3. The main CSS file of the actual page

Nothing works, found a suggestion here http://cksource.com/forums/viewtopic.php?t=17983 that claimed to work, but no dice.

4

1 回答 1

1

我知道我在这个游戏上迟到了,但我在尝试自己解决问题时发现了这个问题。

幸运的是,我能够弄清楚。

.cke_focus {
   outline: none;
}

只要有焦点, .cke_focus 类就会通过 javascript 添加到元素中。

我将此添加到我自己的样式表中,该样式表在 CKEditor 包含的样式表之后调用。如果需要,您可以随时提高特异性,但您不应该这样做。

于 2013-04-10T21:01:41.457 回答