1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-03 23:37:39 +02:00

[ticket/13713] Move function to get textarea element to core.js

PHPBB3-13713
This commit is contained in:
Marc Alexander
2021-05-20 20:38:13 +02:00
parent 1b5c521d8f
commit a0d9c7fe85
3 changed files with 29 additions and 25 deletions

View File

@@ -311,7 +311,8 @@
phpbb.mentions = new Mentions();
$(document).ready(() => {
const textarea = getEditorTextArea();
/* global form_name, text_name */
const textarea = phpbb.getEditorTextArea(form_name, text_name);
if (typeof textarea === 'undefined') {
return;