Zeile 69 | Zeile 69 |
---|
}
var id = 'message';
|
}
var id = 'message';
|
if(typeof $('textarea').sceditor != 'undefined')
| if(typeof MyBBEditor !== 'undefined' && MyBBEditor !== null)
|
{
|
{
|
$('textarea').sceditor('instance').insert(json.message);
| MyBBEditor.insert(json.message);
|
} else {
| } else {
|
Zeile 131 | Zeile 131 |
---|
{ $('#attachment_'+aid).hide(500, function() {
|
{ $('#attachment_'+aid).hide(500, function() {
|
| var instance = MyBBEditor; if(typeof MyBBEditor === 'undefined') { instance = $('#message').sceditor('instance'); }
if(instance.sourceMode()) { instance.setSourceEditorValue(instance.getSourceEditorValue(false).split('[attachment=' + aid + ']').join('')); } else { instance.setWysiwygEditorValue(instance.getWysiwygEditorValue(false).split('[attachment=' + aid + ']').join('')); }
|
$(this).remove(); }); }
| $(this).remove(); }); }
|