*/
_supportPaste: false,
+ /**
+ * pasting was temporarily enabled due to an alternative editor being set
+ * @var boolean
+ */
+ _supportPasteOverride: false,
+
/**
* Initializes the quote manager.
*
this._removeOnSubmit = [ ];
this._showQuotes = null;
this._supportPaste = false;
+ this._supportPasteOverride = false;
if (elementID) {
this._editorElement = $('#' + elementID);
* @param jQuery element
*/
setAlternativeEditor: function(element) {
+ if (!this._editorElementAlternative && !this._supportPaste) {
+ this._hasTemplate = false;
+ this._supportPaste = true;
+ this._supportPasteOverride = true;
+ }
+
this._editorElementAlternative = element;
},
* Clears alternative editor element.
*/
clearAlternativeEditor: function() {
+ if (this._supportPasteOverride) {
+ this._hasTemplate = false;
+ this._supportPaste = false;
+ this._supportPasteOverride = false;
+ }
+
this._editorElementAlternative = null;
},