File: assets/javascript/editor.js
Unmodified
Added
Modified
Removed
Line 159 | Line 159 |
---|
/** * Add inline attachment at position */
|
/** * Add inline attachment at position */
|
function attach_inline(index, filename) {
| function attachInline(index, filename) {
|
insert_text('[attachment=' + index + ']' + filename + '[/attachment]'); document.forms[form_name].elements[text_name].focus(); }
| insert_text('[attachment=' + index + ']' + filename + '[/attachment]'); document.forms[form_name].elements[text_name].focus(); }
|
Line 355 | Line 355 |
---|
textarea = doc.forms[form_name].elements[text_name];
phpbb.applyCodeEditor(textarea);
|
textarea = doc.forms[form_name].elements[text_name];
phpbb.applyCodeEditor(textarea);
|
| if ($('#attach-panel').length) { phpbb.showDragNDrop(textarea); }
$('textarea').on('keydown', function (e) { if (e.which === 13 && (e.metaKey || e.ctrlKey)) { $(this).closest('form').submit(); } });
|
}); })(jQuery);
| }); })(jQuery);
|