Yahoo! UI Library

editor  3.3.0

Yahoo! UI Library > editor > Plugin.EditorBR
Search:
 
Filters

Class Plugin.EditorBR - extends Base

Plugin for Editor to normalize BR's.

Constructor

Plugin.EditorBR ( )

Properties

inst - object

This forced FF to redraw the content on backspace. On some occasions FF will leave a cursor residue after content has been deleted. Dropping in the empty textnode and then removing it causes FF to redraw and remove the "ghost cursors"

NAME - static object

editorBR

NS - static object

editorBR

Properties inherited from Plugin.Host:

Properties inherited from Attribute:

Properties inherited from Base:

Methods

_afterEditorReady

private void _afterEditorReady ( )
Adds listeners for keydown in IE and Webkit. Also fires insertbeonreturn for supporting browsers.

_onKeyDown

private void _onKeyDown ( )
Frame keyDown handler that normalizes BR's when pressing ENTER.

_onNodeChange

private void _onNodeChange ( e )
Adds a nodeChange listener only for FF, in the event of a backspace or delete, it creates an empy textNode inserts it into the DOM after the e.changedNode, then removes it. Causing FF to redraw the content.
Parameters:
e <Event> The nodeChange event.

Events inherited from Base:

Configuration attributes inherited from Base:


Copyright © 2011 Yahoo! Inc. All rights reserved.