From fb4ffa5d535be01e75a5379835b72d2c0321eaa1 Mon Sep 17 00:00:00 2001 From: Matt Porritt Date: Fri, 18 Aug 2023 16:02:10 +1000 Subject: [PATCH] MDL-79066 TinyMCE: Add fullscreen button Enable the existing fullscreen functionality to be able to be accessed from a button on the default editor toolbar. --- 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, 6 insertions(+), 2 deletions(-) diff --git a/lib/editor/tiny/amd/build/defaults.min.js b/lib/editor/tiny/amd/build/defaults.min.js index 06e471a0895..19f6ae35375 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 * @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:"history",items:["undo","redo"]},{name:"formatting",items:["bold","italic"]},{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:"history",items:["undo","redo"]},{name:"formatting",items:["bold","italic"]},{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:"history",items:["undo","redo"]},{name:"formatting",items:["bold","italic"]},{name:"view",items:["fullscreen"]},{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:"history",items:["undo","redo"]},{name:"formatting",items:["bold","italic"]},{name:"view",items:["fullscreen"]},{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 03d1a083987..a25edd0b1bd 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 .\n\n/* eslint-disable max-len, */\n\n/**\n * TinyMCE Editor Upstream defaults.\n *\n * @module editor_tiny/defaults\n * @copyright 2022 Andrew Lyons \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: 'history',\n items: [\n 'undo',\n 'redo',\n ],\n },\n {\n name: 'formatting',\n items: [\n 'bold',\n 'italic',\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 // Mobile configuration.\n // At this time we will use the default TinyMCE mobile configuration.\n // https://www.tiny.cloud/docs/tinymce/6/tinymce-for-mobile/\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,CACH,OACA,SAGR,CACIS,KAAM,aACNT,MAAO,CACH,OACA,WAGR,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,QAzFO,CACH,CACIL,KAAM,UACNT,MAAO,CACH,OACA,SAGR,CACIS,KAAM,aACNT,MAAO,CACH,OACA,WAGR,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,KApIO,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,SAmIjCmB,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 .\n\n/* eslint-disable max-len, */\n\n/**\n * TinyMCE Editor Upstream defaults.\n *\n * @module editor_tiny/defaults\n * @copyright 2022 Andrew Lyons \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: 'history',\n items: [\n 'undo',\n 'redo',\n ],\n },\n {\n name: 'formatting',\n items: [\n 'bold',\n 'italic',\n ],\n },\n {\n name: 'view',\n items: ['fullscreen'],\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 // Mobile configuration.\n // At this time we will use the default TinyMCE mobile configuration.\n // https://www.tiny.cloud/docs/tinymce/6/tinymce-for-mobile/\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,CACH,OACA,SAGR,CACIS,KAAM,aACNT,MAAO,CACH,OACA,WAGR,CACIS,KAAM,OACNT,MAAO,CAAC,eAEZ,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,CACH,OACA,SAGR,CACIS,KAAM,aACNT,MAAO,CACH,OACA,WAGR,CACIS,KAAM,OACNT,MAAO,CAAC,eAEZ,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,SAuIjCmB,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 fdeeb5da0ed..3042c376cea 100644 --- a/lib/editor/tiny/amd/src/defaults.js +++ b/lib/editor/tiny/amd/src/defaults.js @@ -69,6 +69,10 @@ export const getDefaultToolbar = () => { 'italic', ], }, + { + name: 'view', + items: ['fullscreen'], + }, { name: 'alignment', items: [