Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced TinyMCE7 with TinyMCE6 #2

Merged
merged 5 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/code/Magento/Store/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<minify_files>0</minify_files>
<minify_exclude>
<tiny_mce>/tiny_mce/</tiny_mce>
<tiny_mce_6>/tiny_mce_6/</tiny_mce_6>
</minify_exclude>
</js>
<css>
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Ui/view/base/requirejs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var config = {
shim: {
'chartjs/chartjs-adapter-moment': ['moment'],
'chartjs/es6-shim.min': {},
'tiny_mce_7/tinymce.min': {
'tiny_mce_6/tinymce.min': {
exports: 'tinyMCE'
}
},
Expand All @@ -28,7 +28,7 @@ var config = {
buttonAdapter: 'Magento_Ui/js/form/button-adapter',
chartJs: 'chartjs/Chart.min',
'chart.js': 'chartjs/Chart.min',
tinymce: 'tiny_mce_7/tinymce.min',
tinymce: 'tiny_mce_6/tinymce.min',
wysiwygAdapter: 'mage/adminhtml/wysiwyg/tiny_mce/tinymceAdapter'
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ lib/web/prototype/**/*.js
// MINIFIED FILES
app/code/**/*.min.js
lib/web/legacy-build.min.js
lib/web/tiny_mce_7/**/*.js
lib/web/tiny_mce_7/***/*.js
lib/web/tiny_mce_6/**/*.js
lib/web/tiny_mce_6/***/*.js

// TEST
vendor/magento/magento-coding-standard/Magento2/Tests/Eslint/*
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,23 @@
<word>rma</word>
</item>
<item>
<path>lib/web/tiny_mce_7/plugins/help/plugin.min.js</path>
<path>lib/web/tiny_mce_6/plugins/help/plugin.min.js</path>
<word>CHANGELOG</word>
</item>
<item>
<path>lib/web/tiny_mce_7/plugins/emoticons/js/emojis.min.js</path>
<path>lib/web/tiny_mce_6/plugins/emoticons/js/emojis.min.js</path>
<word>Enterprise</word>
</item>
<item>
<path>lib/web/tiny_mce_7/plugins/emoticons/js/emojis.js</path>
<path>lib/web/tiny_mce_6/plugins/emoticons/js/emojis.js</path>
<word>Enterprise</word>
</item>
<item>
<path>lib/web/tiny_mce_7/plugins/emoticons/js/emojiimages.min.js</path>
<path>lib/web/tiny_mce_6/plugins/emoticons/js/emojiimages.min.js</path>
<word>Enterprise</word>
</item>
<item>
<path>lib/web/tiny_mce_7/plugins/emoticons/js/emojiimages.js</path>
<path>lib/web/tiny_mce_6/plugins/emoticons/js/emojiimages.js</path>
<word>Enterprise</word>
</item>
<item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ define([

return content;
});

return this.widget;
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ define([
varienGlobalEvents.attachEventHandler('wysiwygClosePopups', function () {
wysiwyg.closeEditorPopup('widget_window' + wysiwyg.getId());
});

return this.widget;
};

// Register plugin
Expand Down
1 change: 1 addition & 0 deletions lib/web/tiny_mce_6/icons/default/icons.min.js

Large diffs are not rendered by default.

File renamed without changes.
21 changes: 21 additions & 0 deletions lib/web/tiny_mce_6/license.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Ephox Corporation DBA Tiny Technologies, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
4 changes: 4 additions & 0 deletions lib/web/tiny_mce_6/models/dom/model.min.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions lib/web/tiny_mce_6/plugins/accordion/plugin.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading