Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (49 sloc) 905 Bytes
description layout title
Use this button to highlight important content.
feature
Styles
var editor = AlloyEditor.editable('myContentEditable', {
	toolbars: {
		styles: {
			selections: [
				{
					name: 'text',
					buttons: [{
						name: 'styles',
						cfg: {
							styles: [
								{
									name: 'Head 1',
									style: { element: 'h1' }
								},
								{
									name: 'Head 2',
									style: { element: 'h2' }
								},
								{
									name: 'Big',
									style: { element: 'big' }
								},
								{
									name: 'Small',
									style: { element: 'small' }
								},
								{
									name: 'Code',
									style: { element: 'code' }
								}
							]
						}
					}],
					test: AlloyEditor.SelectionTest.text
				}
			]
		}
	}
});