Created
August 7, 2009 16:31
-
-
Save zanvar/163997 to your computer and use it in GitHub Desktop.
This file contains 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
var BPS = {}; | |
BPS.defaultEditorAttrs = { | |
height: '200px', | |
width: '730px', | |
dompath: true, | |
animate: true, | |
handleSubmit: true, | |
filterWord: true, | |
resize: true, | |
toolbar: { | |
titlebar: 'My Editor', | |
buttons: [ | |
{ group: 'fontstyle', label: 'Font Name and Size', | |
buttons: [ | |
{ type: 'select', label: 'Arial', value: 'fontname', disabled: true, | |
menu: [ | |
{ text: 'Arial', checked: true }, | |
{ text: 'Arial Black' }, | |
{ text: 'Comic Sans MS' }, | |
{ text: 'Courier New' }, | |
{ text: 'Lucida Console' }, | |
{ text: 'Tahoma' }, | |
{ text: 'Times New Roman' }, | |
{ text: 'Trebuchet MS' }, | |
{ text: 'Verdana' } | |
] | |
}, | |
{ type: 'spin', label: '13', value: 'fontsize', range: [ 9, 75 ], disabled: true } | |
] | |
}, | |
{ type: 'separator' }, | |
{ group: 'textstyle', label: 'Font Style', | |
buttons: [ | |
{ type: 'push', label: 'Bold CTRL + SHIFT + B', value: 'bold' }, | |
{ type: 'push', label: 'Italic CTRL + SHIFT + I', value: 'italic' }, | |
{ type: 'push', label: 'Underline CTRL + SHIFT + U', value: 'underline' } | |
] | |
}, | |
{ type: 'separator' }, | |
{ group: 'alignment', label: 'Alignment', | |
buttons: [ | |
{ type: 'push', label: 'Align Left CTRL + SHIFT + [', value: 'justifyleft' }, | |
{ type: 'push', label: 'Align Center CTRL + SHIFT + |', value: 'justifycenter' }, | |
{ type: 'push', label: 'Align Right CTRL + SHIFT + ]', value: 'justifyright' }, | |
{ type: 'push', label: 'Justify', value: 'justifyfull' } | |
] | |
}, | |
{ type: 'separator' }, | |
{ group: 'indentlist', label: 'Lists', | |
buttons: [ | |
{ type: 'push', label: 'Indent', value: 'indent', disabled: true }, | |
{ type: 'push', label: 'Outdent', value: 'outdent', disabled: true }, | |
{ type: 'push', label: 'Create an Unordered List', value: 'insertunorderedlist' }, | |
{ type: 'push', label: 'Create an Ordered List', value: 'insertorderedlist' } | |
] | |
} | |
] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment