/**
* Extends EditorParaBase with IE support
* @class Plugin.EditorParaIE
* @extends Plugin.EditorParaBase
* @constructor
* @module editor
* @submodule editor-para-ie
*/
var EditorParaIE = function() {
/**
* nodeChange handler to handle fixing an empty document.
* @private
* @method _onNodeChange
*/
_onNodeChange: function(e) {
switch (e.changedType) {
case 'enter-up':
if (this._lastPara) {
delete this._lastPara;
}
if (b) {
if (b.ancestor(P)) {
b.remove();
}
}
}
if (para2) {
para2 = null;
}
}
if (prev) {
while (!found) {
if (lc) {
if (lc2) {
} else {
found = true;
}
} else {
found = true;
}
}
if (lc) {
}
}
}
break;
case 'enter':
e.changedNode.remove();
if (b) {
b.remove();
}
}
break;
}
},
initializer: function() {
Y.error('Can not plug EditorPara and EditorBR at the same time.');
return;
}
}
}, {
/**
* editorPara
* @static
* @property NAME
*/
NAME: 'editorPara',
/**
* editorPara
* @static
* @property NS
*/
NS: 'editorPara',
ATTRS: {
host: {
value: false
}
}
});
Y.namespace('Plugin');