Note: deferred.pipe() fix is not implemented yet, see https://github.com/guillaumepotier/Parsley.js/pull/1347
19 lines
932 B
Bash
Executable File
19 lines
932 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "/* eslint-disable */
|
|
" > $INIT_CWD/assets/js/src/newsletter_editor/behaviors/tinymce_icons.js
|
|
|
|
echo "import tinymce from 'tinymce/tinymce';
|
|
" >> $INIT_CWD/assets/js/src/newsletter_editor/behaviors/tinymce_icons.js
|
|
|
|
cat $INIT_CWD/node_modules/tinymce/icons/default/icons.min.js >> $INIT_CWD/assets/js/src/newsletter_editor/behaviors/tinymce_icons.js
|
|
|
|
# Replace deprecated jQuery methods in the spectrum-colorpicker dependency
|
|
# Remove this when a patch is included in a package update
|
|
git apply $INIT_CWD/tasks/patches/spectrum-replace-jquery-deprecated.patch || true
|
|
|
|
# Replace deprecated jQuery methods in the parsley dependency
|
|
# Remove this when a patch is included in a package update.
|
|
# Note: deferred.pipe() fix is not implemented yet, see https://github.com/guillaumepotier/Parsley.js/pull/1347
|
|
sed -i -- "s/_focusedField\.focus()/_focusedField\.trigger('focus')/g" node_modules/parsleyjs/dist/parsley*.js
|