Created
October 7, 2011 19:41
-
-
Save brandoncordell/1271187 to your computer and use it in GitHub Desktop.
help
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
createToolbar : function(editor){ | |
var me = this, | |
items = [], | |
tipsEnabled = Ext.tip.QuickTipManager && Ext.tip.QuickTipManager.isEnabled(), | |
baseCSSPrefix = Ext.baseCSSPrefix, | |
fontSelectItem, toolbar, undef; | |
function btn(id, toggle, handler){ | |
return { | |
itemId : id, | |
cls : baseCSSPrefix + 'btn-icon', | |
iconCls: baseCSSPrefix + 'edit-'+id, | |
enableToggle:toggle !== false, | |
scope: editor, | |
handler:handler||editor.relayBtnCmd, | |
clickEvent:'mousedown', | |
tooltip: tipsEnabled ? editor.buttonTips[id] || undef : undef, | |
overflowText: editor.buttonTips[id].title || undef, | |
tabIndex:-1 | |
}; | |
} | |
# THIS IS WHAT I TRIED THATS GIVING ME THE ERROR | |
createToolbar: (editor) -> | |
me = @ | |
items = [] | |
tipsEnabled = Ext.tip.QuickTipManager && Ext.tip.QuickTipManager.isEnabled() | |
baseCSSPrefix = Ext.baseCSSPrefix | |
btn (id, toggle, handler) -> | |
itemId : id | |
cls : baseCSSPrefix + 'btn-icon' | |
iconCls: baseCSSPrefix + 'edit-'+id | |
enableToggle: toggle isnt false | |
scope: editor | |
handler: handler or editor.relayBtnCmd | |
clickEvent: 'mousedown' | |
tooltip: if tipsEnabled then editor.buttonTips[id] || undef else undef | |
overflowText: editor.buttonTips[id].title or undef | |
tabIndex: -1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment