Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
docs
js
meta
tests
HISTORY.md
Makefile
README.md
build.base.properties
build.base.xml
build.bidi.properties
build.bidi.xml
build.br.properties
build.br.xml
build.exec.properties
build.exec.xml
build.frame.properties
build.frame.xml
build.link-base.properties
build.link-base.xml
build.lists.properties
build.lists.xml
build.para.properties
build.para.xml
build.properties
build.selection.properties
build.selection.xml
build.tab.properties
build.tab.xml
build.xml

README.md

Rich Text Editor

The Rich Text Editor is a UI control that allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text.

The current release of the Rich Text Editor for YUI 3 is the base utility layers that provide a foundation on which you can create an Editor. This version of Editor does not contain a GUI of any kind.

YUI().use('editor-base', function(Y) {

    var editor = new Y.EditorBase({
        content: '<strong>This is <em>a test</em></strong> <strong>This is <em>a test</em></strong> '
    });

    //Add the BiDi plugin
    editor.plug(Y.Plugin.EditorBidi);

    //Focusing the Editor when the frame is ready..
    editor.on('frame:ready', function() {
        this.focus();
    });

    //Rendering the Editor.
    editor.render('#editor');

});
Something went wrong with that request. Please try again.