Skip to content

Commit

Permalink
fix(textarea): image paste on multiple pages
Browse files Browse the repository at this point in the history
* Form preview
* Self service with formcreator interface
* Form in tech interface

Signed-off-by: Adrien Clairembault <[email protected]>
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
AdrienClairembault authored and btry committed Feb 25, 2020
1 parent 73611af commit da30f86
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,16 @@ function plugin_init_formcreator() {
];
}

if (strpos($_SERVER['REQUEST_URI'], 'plugins/formcreator/front/targetticket.form.php') !== false) {
Html::requireJs('tinymce');
$pages = [
"plugins/formcreator/front/targetticket.form.php",
"plugins/formcreator/front/formdisplay.php",
"plugins/formcreator/front/form.form.php"
];
foreach ($pages as $page) {
if (strpos($_SERVER['REQUEST_URI'], $page) !== false) {
Html::requireJs('tinymce');
break;
}
}

if (strpos($_SERVER['REQUEST_URI'], 'helpdesk') !== false
Expand Down

0 comments on commit da30f86

Please sign in to comment.