/**
* Base Plugin for Editor to paragraph auto wrapping and correction.
* @class Plugin.EditorParaBase
* @extends Base
* @constructor
* @module editor
* @submodule editor-para-base
*/
var EditorParaBase = function() {
/**
* Utility method to create an empty paragraph when the document is empty.
* @private
* @method _fixFirstPara
*/
_fixFirstPara: function() {
html = '';
col = false;
}
},
/**
* Performs a block element filter when the Editor is first ready
* @private
* @method _afterEditorReady
*/
_afterEditorReady: function() {
if (inst) {
P = btag;
}
},
/**
* Performs a block element filter when the Editor after an content change
* @private
* @method _afterContentChange
*/
_afterContentChange: function() {
}
},
/**
* @private
* @method _afterPaste
*/
_afterPaste: function() {
});
},
initializer: function() {
Y.error('Can not plug EditorPara and EditorBR at the same time.');
return;
}
}
}
}, {
/**
* editorPara
* @static
* @property NAME
*/
NAME: 'editorParaBase',
/**
* editorPara
* @static
* @property NS
*/
NS: 'editorParaBase',
ATTRS: {
host: {
value: false
}
}
});
Y.namespace('Plugin');