diff --git a/public/assets/kindeditor/plugins/lineheight/lineheight.js b/public/assets/kindeditor/plugins/lineheight/lineheight.js index ae679d788..823ebdeaf 100644 --- a/public/assets/kindeditor/plugins/lineheight/lineheight.js +++ b/public/assets/kindeditor/plugins/lineheight/lineheight.js @@ -1,38 +1,40 @@ -/******************************************************************************* -* KindEditor - WYSIWYG HTML Editor for Internet -* Copyright (C) 2006-2011 kindsoft.net -* -* @author Roddy -* @site http://www.kindsoft.net/ -* @licence http://www.kindsoft.net/license.php -*******************************************************************************/ - -KindEditor.plugin('lineheight', function(K) { - var self = this, name = 'lineheight', lang = self.lang(name + '.'); - self.clickToolbar(name, function() { - var curVal = '', commonNode = self.cmd.commonNode({'*' : '.line-height'}); - if (commonNode) { - curVal = commonNode.css('line-height'); - } - var menu = self.createMenu({ - name : name, - width : 150 - }); - K.each(lang.lineHeight, function(i, row) { - K.each(row, function(key, val) { - menu.addItem({ - title : val, - checked : curVal === key, - click : function() { - self.cmd.toggle('', { - span : '.line-height=' + key - }); - self.updateState(); - self.addBookmark(); - self.hideMenu(); - } - }); - }); - }); - }); -}); +/******************************************************************************* +* KindEditor - WYSIWYG HTML Editor for Internet +* Copyright (C) 2006-2011 kindsoft.net +* +* @author Roddy +* @site http://www.kindsoft.net/ +* @licence http://www.kindsoft.net/license.php +*******************************************************************************/ + +KindEditor.plugin('lineheight', function(K) { + var self = this, name = 'lineheight', lang = self.lang(name + '.'); + self.clickToolbar(name, function() { + var curVal = '', commonNode = self.cmd.commonNode({'*' : '.line-height'}); + if (commonNode) { + curVal = commonNode.css('line-height'); + } + var menu = self.createMenu({ + name : name, + width : 150 + }); + K.each(lang.lineHeight, function(i, row) { + K.each(row, function(key, val) { + menu.addItem({ + title : val, + checked : curVal === key, + click : function() { + self.cmd.toggle('', { + span : '.line-height=' + key + }); + self.updateState(); + self.addBookmark(); + //curVal = key; + //self.cmd.doc.body.style.lineHeight = key; + self.hideMenu(); + } + }); + }); + }); + }); +});