Dav Glass![]()
Featured Item
This is a non-supported port of SimpleEditor from YUI2.x. This port uses the same CSS file as the YUI 2.x version. Just add yui-skin-sam to the body and link in the CSS with this url:
http://yui.yahooapis.com/2.8.0r4/build/assets/skins/sam/skin.css
This is an example port using the Port Base Gallery Module. It's meant as an example & not designed to be used on a daily basis. So use at your own risk ;)
YUI({
modules: {
'gallery-port': {
fullpath: 'http://yui.yahooapis.com/gallery-2009.11.02-20/build/gallery-port/gallery-port-min.js',
requires: ['base','node'],
optional: [],
supersedes: []
},
'gallery-simple-editor': {
fullpath: 'http://yui.yahooapis.com/gallery-2009.11.02-20/build/gallery-simple-editor/gallery-simple-editor-min.js',
requires: ['node','gallery-port','substitute'],
optional: [],
supersedes: []
}
}
}).use('gallery-simple-editor', function(Y) {
var editor = new Y.Editor.Simple({
node: '#editor',
dompath: true,
height: '300px',
width: '530px',
handleSubmit: true,
extracss: 'body { font-size: 11px; }'
});
editor.render();
});No forum posts for this module.
© 2010 YUI Library - Site Credits