Sha256: 0966d6840f3619d1d26b8057530df677e0ca36e81584f158544df7647326b162
Contents?: true
Size: 1.15 KB
Versions: 60
Compression:
Stored size: 1.15 KB
Contents
/******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy <luolonghao@gmail.com> * @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 style="line-height:' + key + ';"></span>', { span : '.line-height=' + key }); self.updateState(); self.addBookmark(); self.hideMenu(); } }); }); }); }); });
Version data entries
60 entries across 60 versions & 8 rubygems