return this._messageField.val();
}
else if (this._messageField.data('ckeditorInstance')) {
- var $ckEditor = this._messageField.ckeditorGet();
+ var $ckEditor = this._messageField.ckeditor().editor;
return $ckEditor.getData();
}
var $smileyCode = $target.data('smileyCode');
// get ckEditor
- var $ckEditor = this._ckEditor.ckeditorGet();
+ var $ckEditor = this._ckEditor.ckeditor().editor;
// get smiley path
var $smileyPath = $target.find('img').attr('src');
$empty = (!this._messageField.val().length);
}
else {
- $empty = (!$.trim(this._messageField.ckeditorGet().getData()).length);
+ $empty = (!$.trim(this._messageField.ckeditor().editor.getData()).length);
}
if ($empty) {
this._messageField.focus();
}
else {
- this._messageField.ckeditorGet().ui.editor.focus();
+ this._messageField.ckeditor().editor.ui.editor.focus();
}
}, this), 250);
}
this._messageField.val(data.returnValues.template);
}
else {
- this._messageField.ckeditorGet().insertText(data.returnValues.template);
+ this._messageField.ckeditor().editor.insertText(data.returnValues.template);
}
},
$message = $.trim(this._messageField.val());
}
else {
- var $ckEditor = this._messageField.ckeditorGet();
+ var $ckEditor = this._messageField.ckeditor().editor;
$message = $.trim($ckEditor.getData());
}
}
else {
// revert CKEditor
- this._messageField.ckeditorGet().setData('');
+ this._messageField.ckeditor().editor.setData('');
}
},
$message = this._messageField.val();
}
else {
- var $ckEditor = this._messageField.ckeditorGet();
+ var $ckEditor = this._messageField.ckeditor().editor;
$message = $ckEditor.getData();
}
}
else {
// remove CKEditor contents
- this._messageField.ckeditorGet().setData('');
+ this._messageField.ckeditor().editor.setData('');
}
// hide quick reply and revert it
// remove ckEditor
try {
- var $ckEditor = $('#' + this._messageEditorIDPrefix + $container.data('objectID')).ckeditorGet();
+ var $ckEditor = $('#' + this._messageEditorIDPrefix + $container.data('objectID')).ckeditor().editor;
$ckEditor.destroy();
}
catch (e) {
pe.stop();
var $ckEditor = $('#' + this._messageEditorIDPrefix + this._container[this._activeElementID].data('objectID'));
- $ckEditor.ckeditorGet().ui.editor.focus();
+ $ckEditor.ckeditor().editor.ui.editor.focus();
if (this._quoteManager) {
this._quoteManager.setAlternativeCKEditor($ckEditor);
$message = $('#' + this._messageEditorIDPrefix + $objectID).val();
}
else {
- var $ckEditor = $('#' + this._messageEditorIDPrefix + $objectID).ckeditorGet();
+ var $ckEditor = $('#' + this._messageEditorIDPrefix + $objectID).ckeditor().editor;
$message = $ckEditor.getData();
}
$message = $('#' + this._messageEditorIDPrefix + $objectID).val();
}
else {
- var $ckEditor = $('#' + this._messageEditorIDPrefix + $objectID).ckeditorGet();
+ var $ckEditor = $('#' + this._messageEditorIDPrefix + $objectID).ckeditor().editor;
$message = $ckEditor.getData();
}
// remove editor
if (!$.browser.mobile) {
- var $ckEditor = $('#' + this._messageEditorIDPrefix + $container.data('objectID')).ckeditorGet();
+ var $ckEditor = $('#' + this._messageEditorIDPrefix + $container.data('objectID')).ckeditor().editor;
$ckEditor.destroy();
}
var $ckEditor = null;
if (!$.browser.mobile) {
if (this._ckEditorAlternative === null) {
- $ckEditor = this._ckEditor.ckeditorGet();
+ $ckEditor = this._ckEditor.ckeditor().editor;
}
else {
- $ckEditor = this._ckEditorAlternative.ckeditorGet();
+ $ckEditor = this._ckEditorAlternative.ckeditor().editor;
}
}