Skip to content

Commit fb1ad0a

Browse files
author
Antoine Greuzard
committed
Optimize tinymce import in form.js
Removed 'tinymce' from the imports at the top of form.js file and added it to the global comment. This change is done to reduce code redundancy and to follow the convention of making global tinymce explicit in the file. This optimization may potentially result in quicker load times for the user.
1 parent 25cc3b4 commit fb1ad0a

File tree

2 files changed

+2
-51
lines changed

2 files changed

+2
-51
lines changed

back-end/post-type/form/form.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Sortable from 'sortablejs'
2-
import tinymce from 'tinymce/tinymce'
32

4-
/* global influactiveFormsTranslations */
3+
/* global influactiveFormsTranslations, tinymce */
54

65
function recalculateFieldIndexes() {
76
const container = document.getElementById('influactive_form_fields_container')

dist/backEndForm.bundled.js

Lines changed: 1 addition & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)