From b7ffcdb6ce12a411f655dd34a15b3a64ba5f7142 Mon Sep 17 00:00:00 2001
From: Andrew Nicols <andrew@nicols.co.uk>
Date: Tue, 4 Oct 2022 14:24:20 +0800
Subject: [PATCH] MDL-75078 editor_tiny: Remove styles from standard modal

Part of MDL-75966
---
 lib/editor/tiny/amd/build/defaults.min.js     | 2 +-
 lib/editor/tiny/amd/build/defaults.min.js.map | 2 +-
 lib/editor/tiny/amd/src/defaults.js           | 4 ----
 3 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/lib/editor/tiny/amd/build/defaults.min.js b/lib/editor/tiny/amd/build/defaults.min.js
index 6181dbc2520..e88db699c65 100644
--- a/lib/editor/tiny/amd/build/defaults.min.js
+++ b/lib/editor/tiny/amd/build/defaults.min.js
@@ -6,6 +6,6 @@ define("editor_tiny/defaults",["exports"],(function(_exports){Object.definePrope
    * @copyright  2022 Andrew Lyons <andrew@nicols.co.uk>
    * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
    */
-const getDefaultMenu=()=>({file:{title:"File",items:"newdocument restoredraft | preview | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | a11ycheck code wordcount"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}});_exports.getDefaultMenu=getDefaultMenu;const getDefaultToolbar=()=>[{name:"content",items:[]},{name:"styles",items:["styles"]},{name:"formatting",items:["bold","italic"]},{name:"history",items:["undo","redo"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"lists",items:["bullist","numlist"]},{name:"comments",items:["addcomment"]}];_exports.getDefaultToolbar=getDefaultToolbar;const getDefaultQuickbarsSelectionToolbar=()=>"bold italic | quicklink h2 h3 blockquote";_exports.getDefaultQuickbarsSelectionToolbar=getDefaultQuickbarsSelectionToolbar;const getDefaultQuickbarsInsertToolbar=()=>"quickimage quicktable";_exports.getDefaultQuickbarsInsertToolbar=getDefaultQuickbarsInsertToolbar;const getDefaultQuickbarsImageToolbar=()=>"alignleft aligncenter alignright";_exports.getDefaultQuickbarsImageToolbar=getDefaultQuickbarsImageToolbar;_exports.getDefaultConfiguration=()=>({toolbar_mode:"sliding",toolbar:[{name:"content",items:[]},{name:"styles",items:["styles"]},{name:"formatting",items:["bold","italic"]},{name:"history",items:["undo","redo"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"lists",items:["bullist","numlist"]},{name:"comments",items:["addcomment"]}],quickbars_selection_toolbar:"bold italic | quicklink h2 h3 blockquote",quickbars_insert_toolbar:"quickimage quicktable",quickbars_image_toolbar:"alignleft aligncenter alignright",menu:{file:{title:"File",items:"newdocument restoredraft | preview | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | a11ycheck code wordcount"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},skin:"oxide"})}));
+const getDefaultMenu=()=>({file:{title:"File",items:"newdocument restoredraft | preview | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | a11ycheck code wordcount"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}});_exports.getDefaultMenu=getDefaultMenu;const getDefaultToolbar=()=>[{name:"content",items:[]},{name:"formatting",items:["bold","italic"]},{name:"history",items:["undo","redo"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"lists",items:["bullist","numlist"]},{name:"comments",items:["addcomment"]}];_exports.getDefaultToolbar=getDefaultToolbar;const getDefaultQuickbarsSelectionToolbar=()=>"bold italic | quicklink h2 h3 blockquote";_exports.getDefaultQuickbarsSelectionToolbar=getDefaultQuickbarsSelectionToolbar;const getDefaultQuickbarsInsertToolbar=()=>"quickimage quicktable";_exports.getDefaultQuickbarsInsertToolbar=getDefaultQuickbarsInsertToolbar;const getDefaultQuickbarsImageToolbar=()=>"alignleft aligncenter alignright";_exports.getDefaultQuickbarsImageToolbar=getDefaultQuickbarsImageToolbar;_exports.getDefaultConfiguration=()=>({toolbar_mode:"sliding",toolbar:[{name:"content",items:[]},{name:"formatting",items:["bold","italic"]},{name:"history",items:["undo","redo"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"lists",items:["bullist","numlist"]},{name:"comments",items:["addcomment"]}],quickbars_selection_toolbar:"bold italic | quicklink h2 h3 blockquote",quickbars_insert_toolbar:"quickimage quicktable",quickbars_image_toolbar:"alignleft aligncenter alignright",menu:{file:{title:"File",items:"newdocument restoredraft | preview | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | a11ycheck code wordcount"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},skin:"oxide"})}));
 
 //# sourceMappingURL=defaults.min.js.map
\ No newline at end of file
diff --git a/lib/editor/tiny/amd/build/defaults.min.js.map b/lib/editor/tiny/amd/build/defaults.min.js.map
index fd7eccc66c3..9a9f0a80fbd 100644
--- a/lib/editor/tiny/amd/build/defaults.min.js.map
+++ b/lib/editor/tiny/amd/build/defaults.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"defaults.min.js","sources":["../src/defaults.js"],"sourcesContent":["// This file is part of Moodle - http://moodle.org/\n//\n// Moodle is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// Moodle is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n// GNU General Public License for more details.\n//\n// You should have received a copy of the GNU General Public License\n// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.\n\n/* eslint-disable max-len,  */\n\n/**\n * TinyMCE Editor Upstream defaults.\n *\n * @module editor_tiny/editor\n * @copyright  2022 Andrew Lyons <andrew@nicols.co.uk>\n * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\n\n/**\n * The upstream defaults for the TinyMCE Menu.\n *\n * This value is defined in the TinyMCE documentation, but not exported anywhere useful.\n * https://www.tiny.cloud/docs/tinymce/6/menus-configuration-options/#menu\n *\n * @returns {Object}\n */\nexport const getDefaultMenu = () => {\n    return {\n        file: {title: 'File', items: 'newdocument restoredraft | preview | export print | deleteallconversations'},\n        edit: {title: 'Edit', items: 'undo redo | cut copy paste pastetext | selectall | searchreplace'},\n        view: {title: 'View', items: 'code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments'},\n        insert: {title: 'Insert', items: 'image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents | insertdatetime'},\n        format: {title: 'Format', items: 'bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | language | removeformat'},\n        tools: {title: 'Tools', items: 'spellchecker spellcheckerlanguage | a11ycheck code wordcount'},\n        table: {title: 'Table', items: 'inserttable | cell row column | advtablesort | tableprops deletetable'},\n        help: {title: 'Help', items: 'help'}\n    };\n};\n\n/**\n * The default toolbar configuration to use.\n *\n * This is based upon the default value used if no toolbar is specified.\n *\n * https://www.tiny.cloud/docs/tinymce/6/menus-configuration-options/#menu\n *\n * @returns {Object}\n */\nexport const getDefaultToolbar = () => {\n    return [\n        {\n            name: 'content',\n            items: [],\n        },\n        {\n            name: 'styles',\n            items: ['styles'],\n        },\n        {\n            name: 'formatting',\n            items: [\n                'bold',\n                'italic',\n            ],\n        },\n        {\n            name: 'history',\n            items: [\n                'undo',\n                'redo',\n            ],\n        },\n        {\n            name: 'alignment',\n            items: [\n                'alignleft',\n                'aligncenter',\n                'alignright',\n                'alignjustify',\n            ],\n        },\n        {\n            name: 'indentation',\n            items: [\n                'outdent',\n                'indent',\n            ],\n        },\n        {\n            name: 'lists',\n            items: [\n                'bullist',\n                'numlist',\n            ],\n        },\n        {\n            name: 'comments',\n            items: ['addcomment'],\n        },\n    ];\n};\n\n/**\n * The default quickbars_insert_toolbar configuration to use.\n *\n * This is based upon the default value used if no toolbar is specified.\n *\n * https://www.tiny.cloud/docs/tinymce/6/quickbars/#quickbars_selection_toolbar\n *\n * @returns {string}\n */\nexport const getDefaultQuickbarsSelectionToolbar = () => 'bold italic | quicklink h2 h3 blockquote';\n\n/**\n * The default quickbars_insert_toolbar configuration to use.\n *\n * This is based upon the default value used if no toolbar is specified.\n *\n * https://www.tiny.cloud/docs/tinymce/6/quickbars/#quickbars_insert_toolbar\n *\n * @returns {string}\n */\nexport const getDefaultQuickbarsInsertToolbar = () => 'quickimage quicktable';\n\n/**\n * The default quickbars_insert_toolbar configuration to use.\n *\n * This is based upon the default value used if no toolbar is specified.\n *\n * https://www.tiny.cloud/docs/tinymce/6/quickbars/#quickbars_image_toolbar\n *\n * @returns {string}\n */\nexport const getDefaultQuickbarsImageToolbar = () => 'alignleft aligncenter alignright';\n\n/**\n * Get the default configuration provided by TinyMCE.\n *\n * @returns {object}\n */\nexport const getDefaultConfiguration = () => ({\n    // Toolbar configuration.\n    // https://www.tiny.cloud/docs/tinymce/6/toolbar-configuration-options/\n    // TODO: Move this configuration to a passed-in option.\n    // eslint-disable-next-line camelcase\n    toolbar_mode: 'sliding',\n    toolbar: getDefaultToolbar(),\n\n    // Quickbars Selection Toolbar configuration.\n    // https://www.tiny.cloud/docs/tinymce/6/quickbars/#quickbars_selection_toolbar\n    // eslint-disable-next-line camelcase\n    quickbars_selection_toolbar: getDefaultQuickbarsSelectionToolbar(),\n\n    // Quickbars Select Toolbar configuration.\n    // https://www.tiny.cloud/docs/tinymce/6/quickbars/#quickbars_insert_toolbar\n    // eslint-disable-next-line camelcase\n    quickbars_insert_toolbar: getDefaultQuickbarsInsertToolbar(),\n\n    // Quickbars Image Toolbar configuration.\n    // https://www.tiny.cloud/docs/tinymce/6/quickbars/#quickbars_image_toolbar\n    // eslint-disable-next-line camelcase\n    quickbars_image_toolbar: getDefaultQuickbarsImageToolbar(),\n\n\n    // Menu configuration.\n    // https://www.tiny.cloud/docs/tinymce/6/menus-configuration-options/\n    // TODO: Move this configuration to a passed-in option.\n    menu: getDefaultMenu(),\n\n    // TODO Add mobile configuration.\n    // Mobile configuration.\n    // https://www.tiny.cloud/docs/tinymce/6/tinymce-for-mobile/\n    // This will include mobile-specific toolbar, and menu options.\n\n    // Skins\n    skin: 'oxide',\n});\n"],"names":["getDefaultMenu","file","title","items","edit","view","insert","format","tools","table","help","getDefaultToolbar","name","getDefaultQuickbarsSelectionToolbar","getDefaultQuickbarsInsertToolbar","getDefaultQuickbarsImageToolbar","toolbar_mode","toolbar","quickbars_selection_toolbar","quickbars_insert_toolbar","quickbars_image_toolbar","menu","skin"],"mappings":";;;;;;;;MAiCaA,eAAiB,KACnB,CACHC,KAAM,CAACC,MAAO,OAAQC,MAAO,8EAC7BC,KAAM,CAACF,MAAO,OAAQC,MAAO,oEAC7BE,KAAM,CAACH,MAAO,OAAQC,MAAO,gGAC7BG,OAAQ,CAACJ,MAAO,SAAUC,MAAO,gKACjCI,OAAQ,CAACL,MAAO,SAAUC,MAAO,6KACjCK,MAAO,CAACN,MAAO,QAASC,MAAO,gEAC/BM,MAAO,CAACP,MAAO,QAASC,MAAO,yEAC/BO,KAAM,CAACR,MAAO,OAAQC,MAAO,uDAaxBQ,kBAAoB,IACtB,CACH,CACIC,KAAM,UACNT,MAAO,IAEX,CACIS,KAAM,SACNT,MAAO,CAAC,WAEZ,CACIS,KAAM,aACNT,MAAO,CACH,OACA,WAGR,CACIS,KAAM,UACNT,MAAO,CACH,OACA,SAGR,CACIS,KAAM,YACNT,MAAO,CACH,YACA,cACA,aACA,iBAGR,CACIS,KAAM,cACNT,MAAO,CACH,UACA,WAGR,CACIS,KAAM,QACNT,MAAO,CACH,UACA,YAGR,CACIS,KAAM,WACNT,MAAO,CAAC,mEAcPU,oCAAsC,IAAM,kIAW5CC,iCAAmC,IAAM,yGAWzCC,gCAAkC,IAAM,6IAOd,MAKnCC,aAAc,UACdC,QAjGO,CACH,CACIL,KAAM,UACNT,MAAO,IAEX,CACIS,KAAM,SACNT,MAAO,CAAC,WAEZ,CACIS,KAAM,aACNT,MAAO,CACH,OACA,WAGR,CACIS,KAAM,UACNT,MAAO,CACH,OACA,SAGR,CACIS,KAAM,YACNT,MAAO,CACH,YACA,cACA,aACA,iBAGR,CACIS,KAAM,cACNT,MAAO,CACH,UACA,WAGR,CACIS,KAAM,QACNT,MAAO,CACH,UACA,YAGR,CACIS,KAAM,WACNT,MAAO,CAAC,gBAsDhBe,4BAxCqD,2CA6CrDC,yBAlCkD,wBAuClDC,wBA5BiD,mCAkCjDC,KA5IO,CACHpB,KAAM,CAACC,MAAO,OAAQC,MAAO,8EAC7BC,KAAM,CAACF,MAAO,OAAQC,MAAO,oEAC7BE,KAAM,CAACH,MAAO,OAAQC,MAAO,gGAC7BG,OAAQ,CAACJ,MAAO,SAAUC,MAAO,gKACjCI,OAAQ,CAACL,MAAO,SAAUC,MAAO,6KACjCK,MAAO,CAACN,MAAO,QAASC,MAAO,gEAC/BM,MAAO,CAACP,MAAO,QAASC,MAAO,yEAC/BO,KAAM,CAACR,MAAO,OAAQC,MAAO,SA4IjCmB,KAAM"}
\ No newline at end of file
+{"version":3,"file":"defaults.min.js","sources":["../src/defaults.js"],"sourcesContent":["// This file is part of Moodle - http://moodle.org/\n//\n// Moodle is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// Moodle is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n// GNU General Public License for more details.\n//\n// You should have received a copy of the GNU General Public License\n// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.\n\n/* eslint-disable max-len,  */\n\n/**\n * TinyMCE Editor Upstream defaults.\n *\n * @module editor_tiny/editor\n * @copyright  2022 Andrew Lyons <andrew@nicols.co.uk>\n * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\n\n/**\n * The upstream defaults for the TinyMCE Menu.\n *\n * This value is defined in the TinyMCE documentation, but not exported anywhere useful.\n * https://www.tiny.cloud/docs/tinymce/6/menus-configuration-options/#menu\n *\n * @returns {Object}\n */\nexport const getDefaultMenu = () => {\n    return {\n        file: {title: 'File', items: 'newdocument restoredraft | preview | export print | deleteallconversations'},\n        edit: {title: 'Edit', items: 'undo redo | cut copy paste pastetext | selectall | searchreplace'},\n        view: {title: 'View', items: 'code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments'},\n        insert: {title: 'Insert', items: 'image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents | insertdatetime'},\n        format: {title: 'Format', items: 'bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | language | removeformat'},\n        tools: {title: 'Tools', items: 'spellchecker spellcheckerlanguage | a11ycheck code wordcount'},\n        table: {title: 'Table', items: 'inserttable | cell row column | advtablesort | tableprops deletetable'},\n        help: {title: 'Help', items: 'help'}\n    };\n};\n\n/**\n * The default toolbar configuration to use.\n *\n * This is based upon the default value used if no toolbar is specified.\n *\n * https://www.tiny.cloud/docs/tinymce/6/menus-configuration-options/#menu\n *\n * @returns {Object}\n */\nexport const getDefaultToolbar = () => {\n    return [\n        {\n            name: 'content',\n            items: [],\n        },\n        {\n            name: 'formatting',\n            items: [\n                'bold',\n                'italic',\n            ],\n        },\n        {\n            name: 'history',\n            items: [\n                'undo',\n                'redo',\n            ],\n        },\n        {\n            name: 'alignment',\n            items: [\n                'alignleft',\n                'aligncenter',\n                'alignright',\n                'alignjustify',\n            ],\n        },\n        {\n            name: 'indentation',\n            items: [\n                'outdent',\n                'indent',\n            ],\n        },\n        {\n            name: 'lists',\n            items: [\n                'bullist',\n                'numlist',\n            ],\n        },\n        {\n            name: 'comments',\n            items: ['addcomment'],\n        },\n    ];\n};\n\n/**\n * The default quickbars_insert_toolbar configuration to use.\n *\n * This is based upon the default value used if no toolbar is specified.\n *\n * https://www.tiny.cloud/docs/tinymce/6/quickbars/#quickbars_selection_toolbar\n *\n * @returns {string}\n */\nexport const getDefaultQuickbarsSelectionToolbar = () => 'bold italic | quicklink h2 h3 blockquote';\n\n/**\n * The default quickbars_insert_toolbar configuration to use.\n *\n * This is based upon the default value used if no toolbar is specified.\n *\n * https://www.tiny.cloud/docs/tinymce/6/quickbars/#quickbars_insert_toolbar\n *\n * @returns {string}\n */\nexport const getDefaultQuickbarsInsertToolbar = () => 'quickimage quicktable';\n\n/**\n * The default quickbars_insert_toolbar configuration to use.\n *\n * This is based upon the default value used if no toolbar is specified.\n *\n * https://www.tiny.cloud/docs/tinymce/6/quickbars/#quickbars_image_toolbar\n *\n * @returns {string}\n */\nexport const getDefaultQuickbarsImageToolbar = () => 'alignleft aligncenter alignright';\n\n/**\n * Get the default configuration provided by TinyMCE.\n *\n * @returns {object}\n */\nexport const getDefaultConfiguration = () => ({\n    // Toolbar configuration.\n    // https://www.tiny.cloud/docs/tinymce/6/toolbar-configuration-options/\n    // TODO: Move this configuration to a passed-in option.\n    // eslint-disable-next-line camelcase\n    toolbar_mode: 'sliding',\n    toolbar: getDefaultToolbar(),\n\n    // Quickbars Selection Toolbar configuration.\n    // https://www.tiny.cloud/docs/tinymce/6/quickbars/#quickbars_selection_toolbar\n    // eslint-disable-next-line camelcase\n    quickbars_selection_toolbar: getDefaultQuickbarsSelectionToolbar(),\n\n    // Quickbars Select Toolbar configuration.\n    // https://www.tiny.cloud/docs/tinymce/6/quickbars/#quickbars_insert_toolbar\n    // eslint-disable-next-line camelcase\n    quickbars_insert_toolbar: getDefaultQuickbarsInsertToolbar(),\n\n    // Quickbars Image Toolbar configuration.\n    // https://www.tiny.cloud/docs/tinymce/6/quickbars/#quickbars_image_toolbar\n    // eslint-disable-next-line camelcase\n    quickbars_image_toolbar: getDefaultQuickbarsImageToolbar(),\n\n\n    // Menu configuration.\n    // https://www.tiny.cloud/docs/tinymce/6/menus-configuration-options/\n    // TODO: Move this configuration to a passed-in option.\n    menu: getDefaultMenu(),\n\n    // TODO Add mobile configuration.\n    // Mobile configuration.\n    // https://www.tiny.cloud/docs/tinymce/6/tinymce-for-mobile/\n    // This will include mobile-specific toolbar, and menu options.\n\n    // Skins\n    skin: 'oxide',\n});\n"],"names":["getDefaultMenu","file","title","items","edit","view","insert","format","tools","table","help","getDefaultToolbar","name","getDefaultQuickbarsSelectionToolbar","getDefaultQuickbarsInsertToolbar","getDefaultQuickbarsImageToolbar","toolbar_mode","toolbar","quickbars_selection_toolbar","quickbars_insert_toolbar","quickbars_image_toolbar","menu","skin"],"mappings":";;;;;;;;MAiCaA,eAAiB,KACnB,CACHC,KAAM,CAACC,MAAO,OAAQC,MAAO,8EAC7BC,KAAM,CAACF,MAAO,OAAQC,MAAO,oEAC7BE,KAAM,CAACH,MAAO,OAAQC,MAAO,gGAC7BG,OAAQ,CAACJ,MAAO,SAAUC,MAAO,gKACjCI,OAAQ,CAACL,MAAO,SAAUC,MAAO,6KACjCK,MAAO,CAACN,MAAO,QAASC,MAAO,gEAC/BM,MAAO,CAACP,MAAO,QAASC,MAAO,yEAC/BO,KAAM,CAACR,MAAO,OAAQC,MAAO,uDAaxBQ,kBAAoB,IACtB,CACH,CACIC,KAAM,UACNT,MAAO,IAEX,CACIS,KAAM,aACNT,MAAO,CACH,OACA,WAGR,CACIS,KAAM,UACNT,MAAO,CACH,OACA,SAGR,CACIS,KAAM,YACNT,MAAO,CACH,YACA,cACA,aACA,iBAGR,CACIS,KAAM,cACNT,MAAO,CACH,UACA,WAGR,CACIS,KAAM,QACNT,MAAO,CACH,UACA,YAGR,CACIS,KAAM,WACNT,MAAO,CAAC,mEAcPU,oCAAsC,IAAM,kIAW5CC,iCAAmC,IAAM,yGAWzCC,gCAAkC,IAAM,6IAOd,MAKnCC,aAAc,UACdC,QA7FO,CACH,CACIL,KAAM,UACNT,MAAO,IAEX,CACIS,KAAM,aACNT,MAAO,CACH,OACA,WAGR,CACIS,KAAM,UACNT,MAAO,CACH,OACA,SAGR,CACIS,KAAM,YACNT,MAAO,CACH,YACA,cACA,aACA,iBAGR,CACIS,KAAM,cACNT,MAAO,CACH,UACA,WAGR,CACIS,KAAM,QACNT,MAAO,CACH,UACA,YAGR,CACIS,KAAM,WACNT,MAAO,CAAC,gBAsDhBe,4BAxCqD,2CA6CrDC,yBAlCkD,wBAuClDC,wBA5BiD,mCAkCjDC,KAxIO,CACHpB,KAAM,CAACC,MAAO,OAAQC,MAAO,8EAC7BC,KAAM,CAACF,MAAO,OAAQC,MAAO,oEAC7BE,KAAM,CAACH,MAAO,OAAQC,MAAO,gGAC7BG,OAAQ,CAACJ,MAAO,SAAUC,MAAO,gKACjCI,OAAQ,CAACL,MAAO,SAAUC,MAAO,6KACjCK,MAAO,CAACN,MAAO,QAASC,MAAO,gEAC/BM,MAAO,CAACP,MAAO,QAASC,MAAO,yEAC/BO,KAAM,CAACR,MAAO,OAAQC,MAAO,SAwIjCmB,KAAM"}
\ No newline at end of file
diff --git a/lib/editor/tiny/amd/src/defaults.js b/lib/editor/tiny/amd/src/defaults.js
index 7242879fbc5..8b1d3b93bf8 100644
--- a/lib/editor/tiny/amd/src/defaults.js
+++ b/lib/editor/tiny/amd/src/defaults.js
@@ -59,10 +59,6 @@ export const getDefaultToolbar = () => {
             name: 'content',
             items: [],
         },
-        {
-            name: 'styles',
-            items: ['styles'],
-        },
         {
             name: 'formatting',
             items: [