11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass * Extends EditorParaBase with IE support
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass * @class Plugin.EditorParaIE
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass * @extends Plugin.EditorParaBase
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass * @constructor
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass * @module editor
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass * @submodule editor-para-ie
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass EditorParaIE.superclass.constructor.apply(this, arguments);
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass }, HOST = 'host', BODY = 'body', NODE_CHANGE = 'nodeChange', PARENT_NODE = 'parentNode',
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass FIRST_P = BODY + ' > p', P = 'p', BR = '<br>', FC = 'firstChild', LI = 'li';
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass * nodeChange handler to handle fixing an empty document.
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass * @method _onNodeChange
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass _onNodeChange: function(e) {
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass var host = this.get(HOST), inst = host.getInstance(),
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass html, txt, par , d, sel, btag = inst.EditorSelection.DEFAULT_BLOCK_TAG,
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass inHTML, txt2, childs, aNode, index, node2, top, n, sib,
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass ps, br, item, p, imgs, t, LAST_CHILD = ':last-child';
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass case 'enter-up':
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass var para = ((this._lastPara) ? this._lastPara : e.changedNode),
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass var prev = para.previous(), lc, lc2, found = false;
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass case 'enter':
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass initializer: function() {
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass Y.error('Can not plug EditorPara and EditorBR at the same time.');
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass host.on(NODE_CHANGE, Y.bind(this._onNodeChange, this));
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass * editorPara
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass * @property NAME
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass * editorPara
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass * @property NS