Creates a rich custom Toolbar Button. Primarily used with the Rich Text Editor's Toolbar
Creates a basic custom Toolbar Button. Primarily used with the Rich Text Editor's Toolbar
Provides a toolbar button based on the button and menu widgets, <select> elements are used in place of menu's.
Creates a rich Toolbar widget based on Button. Primarily used with the Rich Text Editor
* { * { id: 'b3', type: 'button', label: 'Underline', value: 'underline' }, * { type: 'separator' }, * { id: 'b4', type: 'menu', label: 'Align', value: 'align', * menu: [ * { text: "Left", value: 'alignleft' }, * { text: "Center", value: 'aligncenter' }, * { text: "Right", value: 'alignright' } * ] * } * } *
* buttons : [ * { type: 'button', value: 'test', value: 'testButton' } * ] *
* buttons : [ * { type: 'button', value: 'test', value: 'testButton' } * ]
The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.
CLOSE_WINDOW: { key: 87, mods: ['shift', 'ctrl'] }
html { height: 95%; } body { height: 100%; padding: 7px; background-color: #fff; font:13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small; } a { color: blue; text-decoration: underline; cursor: pointer; } .warning-localfile { border-bottom: 1px dashed red !important; } .yui-busy { cursor: wait !important; } img.selected { //Safari image selection border: 2px dotted #808080; } img { cursor: pointer !important; border: none; }
{TITLE}, {CSS}, {HIDDEN_CSS}, {EXTRA_CSS} and {CONTENT} need to be there, they are passed to YAHOO.lang.substitute to be replace with other strings.
{TITLE}, {CSS}, {HIDDEN_CSS}, {EXTRA_CSS}
{CONTENT}
onload="document.body._rteLoaded = true;" : the onload statement must be there or the editor will not finish loading.
onload="document.body._rteLoaded = true;"
<html> <head> <title>{TITLE}</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <style> {CSS} </style> <style> {HIDDEN_CSS} </style> <style> {EXTRA_CSS} </style> </head> <body onload="document.body._rteLoaded = true;"> {CONTENT} </body> </html>
execCommand('fontname', false, 'yui-tmp')
this.currentElement