Marco Asbreuk![]()
GUI for the Rich Text Editor.
It is really light weight: based on css-buttons and ItsaSelectlist items.
You can even add your own custom-buttons if you want.
Known issues:
To do:
The editor toolbar will be rendered after the editor fires 'ready'.
So you don't have to wait until the editor is ready yourself: just plugin.
<script src="http://yui.yahooapis.com/3.9.0pr3/build/yui/yui-min.js"></script>// if you want a toolbar inside the editor-div:
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.10.03-20-02'
}).use('editor-base', 'gallery-itsatoolbar', function(Y) {
var myEditor = new Y.EditorBase();
myEditor.plug(Y.Plugin.ITSAToolbar);
editor.render('#editor');
});
// or, if you want a toolbar on top of the page in a separate div:
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.10.03-20-02'
}).use('editor-base', 'gallery-itsatoolbar', function(Y) {
var myEditor = new Y.EditorBase();
myEditor.plug(Y.Plugin.ITSAToolbar, {srcNode: '#divtoolbar'});
editor.render('#editor');
});
// or, if you want just big-sized BIU-buttons:
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.10.03-20-02'
}).use('editor-base', 'gallery-itsatoolbar', function(Y) {
var myEditor = new Y.EditorBase();
myEditor.plug(Y.Plugin.ITSAToolbar, {
btnEmail: false,
btnFontfamily: false,
btnHeader: false,
btnFontsize: false,
btnHyperlink: false,
btnMarkcolor: false,
btnTextcolor: false,
grpAlign: false,
grpIndent: false,
grpLists: false,
grpSubsuper: false,
grpUndoredo: false,
btnSize: 3
});
editor.render('#editor');
});
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info