Permalink
Browse files

* add a space after ruby for easy editing.

  • Loading branch information...
kou committed Mar 31, 2009
1 parent c592b65 commit a2b974a657fa1ca11f36b5354ac163301340700d
Showing with 3 additions and 0 deletions.
  1. +3 −0 public/tiny_mce/plugins/ruby/js/ruby.js
@@ -51,6 +51,7 @@ function init() {
function setAllCommonAttribs(element) {
var dom = SXE.inst.dom;
+ var editor = tinymce.EditorManager.activeEditor;
var parentheses = [];
var text = null;
var base = null;
@@ -87,6 +88,8 @@ function setAllCommonAttribs(element) {
element.insertBefore(dom.create("rp", {}, "("), text);
dom.insertAfter(dom.create("rp", {}, ")"), text);
+ dom.insertAfter(dom.create("span", {"class": "mceItemHidden"}, " "),
+ element);
}
function insertRuby() {

0 comments on commit a2b974a

Please sign in to comment.