@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231119.0 → 0.0.0-nightly-20231121.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44fe=['*Change\x20to:*\x20%0','ELEMENT_LIST_ITEM','createPositionAt','registerElementLabel','push','value','model','change','schema','List','ELEMENT_BULLETED_LIST','findIndex','numbered','enableCommand','forceValue','commands','blockName','checkChild','TodoListEditing','_descriptionFactory','formatInline','markBlockFormat','locale','parent','filter','slice','afterInit','getAttribute','add','ELEMENT_NUMBERED_LIST','document','numberedList','outdentList','todoListChecked','bulletedList','commandParams','name','listItem','nextSibling','commandName','replace','listIndent','end','getSelectedBlocks','checkTodoList','has','listType','from','plugins','indentList','registerDescriptionCallback','paragraph','previousSibling','format','get','selection','type','bulleted','element','todoList'];(function(_0x11596c,_0x44fe04){const _0x5ad35f=function(_0x144ea7){while(--_0x144ea7){_0x11596c['push'](_0x11596c['shift']());}};_0x5ad35f(++_0x44fe04);}(_0x44fe,0xac));const _0x5ad3=function(_0x11596c,_0x44fe04){_0x11596c=_0x11596c-0x0;let _0x5ad35f=_0x44fe[_0x11596c];return _0x5ad35f;};import{Plugin as _0x2e3c1d}from'ckeditor5/src/core';import{getTranslation as _0x322007}from'../utils/common-translations';export default class ct extends _0x2e3c1d{[_0x5ad3('0x22')](){const _0x27e7af=this['editor'],_0x1fbc64=_0x27e7af[_0x5ad3('0x1e')];if(!_0x27e7af['plugins'][_0x5ad3('0x35')]('ListEditing'))return;const _0x5be414=_0x27e7af[_0x5ad3('0x38')][_0x5ad3('0x2')]('TrackChangesEditing'),_0x12eb10=_0x27e7af[_0x5ad3('0x38')][_0x5ad3('0x35')](_0x5ad3('0x1a'));function _0x342d00(_0x57f959){return()=>{const _0x14cbea=_0x27e7af[_0x5ad3('0xe')][_0x5ad3('0x26')][_0x5ad3('0x3')],_0x3aa4bd=_0x27e7af['commands'][_0x5ad3('0x2')](_0x57f959);if(_0x3aa4bd[_0x5ad3('0xd')])return void _0x27e7af['execute'](_0x5ad3('0x3b'),{});const _0x5c4d9c=_0x57f959[_0x5ad3('0x21')](0x0,-0x4),_0xf7c982=function(_0x5637ae,_0x1dbe3f,_0x5712f3){let _0x21bfe7=Array[_0x5ad3('0x37')](_0x5637ae)[_0x5ad3('0x20')](_0x5a88f8=>function(_0x56cea4,_0x2be013){return _0x2be013[_0x5ad3('0x19')](_0x56cea4[_0x5ad3('0x1f')],'listItem')&&!_0x2be013['isObject'](_0x56cea4);}(_0x5a88f8,_0x5712f3));_0x21bfe7=_0x21bfe7[_0x5ad3('0x20')](_0xdc56c3=>!_0xdc56c3['is']('element',_0x5ad3('0x2d'))||_0xdc56c3['getAttribute'](_0x5ad3('0x36'))!=_0x1dbe3f);const _0x177e68=new Set();for(const _0x2e718b of _0x21bfe7)_0x2e718b['is'](_0x5ad3('0x6'),_0x5ad3('0x2d'))?_0x177e68[_0x5ad3('0x24')](ne(_0x2e718b)):_0x177e68[_0x5ad3('0x24')](_0x2e718b);return Array['from'](_0x177e68);}(_0x14cbea[_0x5ad3('0x33')](),_0x5c4d9c,_0x27e7af['model'][_0x5ad3('0x10')]);_0x27e7af[_0x5ad3('0xe')][_0x5ad3('0xf')](()=>{for(const _0x136262 of _0xf7c982)_0x5be414[_0x5ad3('0x1d')](_0x136262,{'commandName':_0x57f959,'commandParams':[{'forceValue':!_0x3aa4bd['value']}],'formatGroupId':_0x5ad3('0x18')},oe(_0x136262));});};}function _0x121b09(_0x48bee4){return()=>{const _0x181d3f=function(_0x9ba2a5){let _0x302fd6=Array[_0x5ad3('0x37')](_0x9ba2a5);const _0x329010=_0x302fd6[_0x5ad3('0x13')](_0x442bd8=>_0x5ad3('0x2d')!=_0x442bd8[_0x5ad3('0x2c')]);return _0x329010>-0x1&&(_0x302fd6=_0x302fd6['slice'](0x0,_0x329010)),_0x302fd6;}(_0x27e7af[_0x5ad3('0xe')]['document'][_0x5ad3('0x3')][_0x5ad3('0x33')]()),_0x4271e9=_0x27e7af[_0x5ad3('0xe')]['createRange'](_0x27e7af['model']['createPositionAt'](_0x181d3f[0x0],'before'),_0x27e7af[_0x5ad3('0xe')][_0x5ad3('0xa')](_0x181d3f[_0x181d3f['length']-0x1],_0x5ad3('0x32')));_0x27e7af[_0x5ad3('0xe')][_0x5ad3('0xf')](()=>{_0x5be414[_0x5ad3('0x1d')](_0x4271e9,{'commandName':_0x48bee4,'commandParams':[],'formatGroupId':'listIndent'},function(_0x19294e){const _0x11ae8c=new Set();for(const _0x37a838 of _0x19294e){let _0x54e2dd=_0x37a838[_0x5ad3('0x2e')];for(;_0x54e2dd&&_0x54e2dd[_0x5ad3('0x23')]('listIndent')>_0x37a838['getAttribute']('listIndent');)_0x11ae8c['add'](_0x54e2dd),_0x54e2dd=_0x54e2dd[_0x5ad3('0x2e')];}return Array['from'](_0x11ae8c);}(_0x181d3f));});};}_0x5be414['enableCommand'](_0x5ad3('0x27'),_0x342d00(_0x5ad3('0x27'))),_0x5be414[_0x5ad3('0x15')](_0x5ad3('0x2a'),_0x342d00(_0x5ad3('0x2a'))),_0x12eb10&&_0x5be414[_0x5ad3('0x15')]('todoList',_0x342d00(_0x5ad3('0x7'))),_0x5be414[_0x5ad3('0x15')](_0x5ad3('0x39'),_0x121b09(_0x5ad3('0x39'))),_0x5be414[_0x5ad3('0x15')](_0x5ad3('0x28'),_0x121b09(_0x5ad3('0x28'))),_0x12eb10&&_0x5be414['enableCommand'](_0x5ad3('0x34'),()=>{const _0x4a5b70=_0x27e7af[_0x5ad3('0x17')][_0x5ad3('0x2')](_0x5ad3('0x34')),_0x5a6c93=Array[_0x5ad3('0x37')](_0x4a5b70['_selectedElements']);_0x5a6c93[_0x5ad3('0x20')](_0x138873=>_0x138873[_0x5ad3('0x23')](_0x5ad3('0x29'))!=_0x4a5b70[_0x5ad3('0xd')]),_0x27e7af[_0x5ad3('0xe')][_0x5ad3('0xf')](()=>{for(const _0x27df59 of _0x5a6c93)_0x5be414[_0x5ad3('0x1d')](_0x27df59,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4a5b70[_0x5ad3('0xd')]}]});});}),_0x5be414[_0x5ad3('0x1b')][_0x5ad3('0xb')](_0x5ad3('0x2d'),_0x4e3928=>_0x322007(_0x1fbc64,'ELEMENT_LIST_ITEM',_0x4e3928)),_0x5be414[_0x5ad3('0x1b')][_0x5ad3('0x3a')](_0x39ee9f=>{if('formatBlock'!=_0x39ee9f[_0x5ad3('0x4')]&&_0x5ad3('0x1c')!=_0x39ee9f['type'])return;const {data:_0x556dfb}=_0x39ee9f;if(_0x556dfb){if('numberedList'==_0x556dfb[_0x5ad3('0x2f')]||_0x5ad3('0x2a')==_0x556dfb[_0x5ad3('0x2f')]||_0x5ad3('0x7')==_0x556dfb[_0x5ad3('0x2f')])switch(_0x556dfb[_0x5ad3('0x2f')][_0x5ad3('0x30')](_0x5ad3('0x11'),'')){case _0x5ad3('0x5'):return _0x1823f4(_0x322007(_0x1fbc64,_0x5ad3('0x12')));case _0x5ad3('0x14'):return _0x1823f4(_0x322007(_0x1fbc64,_0x5ad3('0x25')));case'todo':return _0x1823f4(_0x322007(_0x1fbc64,'ELEMENT_TODO_LIST'));}if(_0x5ad3('0x39')==_0x556dfb['commandName'])return{'type':'format','content':_0x322007(_0x1fbc64,'*Indent:*\x20%0',_0x322007(_0x1fbc64,_0x5ad3('0x9')))};if(_0x5ad3('0x28')==_0x556dfb[_0x5ad3('0x2f')])return{'type':_0x5ad3('0x1'),'content':_0x322007(_0x1fbc64,'*Outdent:*\x20%0',_0x322007(_0x1fbc64,_0x5ad3('0x9')))};if(_0x5ad3('0x34')==_0x556dfb[_0x5ad3('0x2f')])return _0x556dfb[_0x5ad3('0x2b')][0x0][_0x5ad3('0x16')]?{'type':_0x5ad3('0x1'),'content':_0x322007(_0x1fbc64,'*Check\x20item*')}:{'type':'format','content':_0x322007(_0x1fbc64,'*Uncheck\x20item*')};}function _0x1823f4(_0x182032){return{'type':_0x5ad3('0x1'),'content':_0x322007(_0x1fbc64,_0x5ad3('0x8'),_0x182032)};}});}}function ne(_0x41443e){const _0x408284=_0x41443e[_0x5ad3('0x23')](_0x5ad3('0x31'));if(0x0==_0x408284)return _0x41443e;let _0x506d8b=_0x41443e;for(;_0x41443e[_0x5ad3('0x0')]&&_0x41443e[_0x5ad3('0x0')]['is'](_0x5ad3('0x6'),_0x5ad3('0x2d'));){const _0xe178f5=_0x41443e[_0x5ad3('0x0')][_0x5ad3('0x23')](_0x5ad3('0x31'));if(_0xe178f5==_0x408284)_0x506d8b=_0x41443e[_0x5ad3('0x0')];else{if(_0xe178f5<_0x408284)break;}_0x41443e=_0x41443e[_0x5ad3('0x0')];}return _0x506d8b;}function oe(_0xefbdd6){const _0x59a5ab=[];if(_0xefbdd6['is']('element','listItem')&&_0xefbdd6[_0x5ad3('0x23')](_0x5ad3('0x31'))>0x0){let _0x1a89ba=_0xefbdd6['nextSibling'];for(;_0x1a89ba&&_0x5ad3('0x2d')==_0x1a89ba[_0x5ad3('0x2c')]&&_0x1a89ba[_0x5ad3('0x23')](_0x5ad3('0x31'))==_0xefbdd6['getAttribute'](_0x5ad3('0x31'));)_0x59a5ab[_0x5ad3('0xc')](_0x1a89ba),_0x1a89ba=_0x1a89ba[_0x5ad3('0x2e')];}return _0x59a5ab;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb95f=['ListUtils','get','element','handleListReversedCommand','length','createPositionAt','replace','editor','ListPropertiesEditing','getListTypeFromListStyleType','listReversed','type','from','selection','formatInline','config','listType','reversed','commandName','startIndex','afterInit','push','unshift','registerDescriptionCallback','plugins','getAttribute','map','model','locale','ELEMENT_','listStart','_LIST_','handleListStyleCommand','_getSuggestionBlocksForListStyle','toUpperCase','getFirstPosition','markMultiRangeBlockFormat','flat','_getTranslationKeyForListStyle','enableCommand','commandParams','numbered','createRange','_descriptionFactory','TrackChangesEditing','listStyle','change','formatBlock','list.properties','listItem','filter','handleListStartCommand','document','_getSuggestionBlocks','handleDescriptions','getSiblingNodes','before','*Change\x20to:*\x20%0','styles','*Format:*\x20set\x20order\x20to\x20regular','format','getSelectedBlocks','bind'];(function(_0x37e98,_0xb95f89){const _0x2aee45=function(_0x173be7){while(--_0x173be7){_0x37e98['push'](_0x37e98['shift']());}};_0x2aee45(++_0xb95f89);}(_0xb95f,0x64));const _0x2aee=function(_0x37e98,_0xb95f89){_0x37e98=_0x37e98-0x0;let _0x2aee45=_0xb95f[_0x37e98];return _0x2aee45;};import{Plugin as _0x36d388}from'ckeditor5/src/core';import{getTranslation as _0x5088b8}from'../utils/common-translations';export default class ut extends _0x36d388{[_0x2aee('0x2e')](){if(!this[_0x2aee('0x21')]['plugins']['has'](_0x2aee('0x22')))return;const _0xdb2e97=this[_0x2aee('0x21')][_0x2aee('0x29')]['get'](_0x2aee('0xb')),_0x2b9273=this['editor'][_0x2aee('0x32')][_0x2aee('0x1b')](_0x2aee('0x7'));_0xdb2e97[_0x2aee('0x15')]&&_0x2b9273[_0x2aee('0x2')]('listStyle',this['handleListStyleCommand']['bind'](this)),_0xdb2e97[_0x2aee('0x2b')]&&_0x2b9273[_0x2aee('0x2')](_0x2aee('0x24'),this[_0x2aee('0x1d')][_0x2aee('0x19')](this)),_0xdb2e97[_0x2aee('0x2d')]&&_0x2b9273[_0x2aee('0x2')]('listStart',this['handleListStartCommand'][_0x2aee('0x19')](this)),_0x2b9273[_0x2aee('0x6')][_0x2aee('0x31')](this['handleDescriptions'][_0x2aee('0x19')](this));}[_0x2aee('0x3a')](_0x3d421c,_0x25d332={}){const _0x4ac906=this[_0x2aee('0x21')][_0x2aee('0x32')][_0x2aee('0x1b')]('TrackChangesEditing'),_0x325e5f=this[_0x2aee('0x3b')]();this[_0x2aee('0x21')][_0x2aee('0x35')][_0x2aee('0x9')](()=>{_0x4ac906[_0x2aee('0x3e')](_0x325e5f,{'commandName':_0x2aee('0x8'),'commandParams':[{'type':_0x25d332['type']}],'formatGroupId':_0x2aee('0x8')});});}[_0x2aee('0x1d')](_0x2e6b64,_0x45ad12={}){const _0x29c5cc=this['editor']['plugins'][_0x2aee('0x1b')]('TrackChangesEditing'),_0x1640ae=this['_getSuggestionBlocks'](_0x24189e=>_0x24189e['is']('element',_0x2aee('0xc'))&&'numbered'===_0x24189e['getAttribute'](_0x2aee('0x2a')));if(_0x1640ae['length']<0x1)return;const _0x274fb6=_0x1640ae[_0x2aee('0x34')](_0x4394ce=>this['editor'][_0x2aee('0x35')]['createRange'](this['editor']['model'][_0x2aee('0x1f')](_0x4394ce,_0x2aee('0x13')),this[_0x2aee('0x21')][_0x2aee('0x35')][_0x2aee('0x1f')](_0x4394ce,0x0)));this[_0x2aee('0x21')]['model']['change'](()=>{_0x29c5cc['markMultiRangeBlockFormat'](_0x274fb6,{'commandName':'listReversed','commandParams':[{'reversed':_0x45ad12[_0x2aee('0x2b')]}],'formatGroupId':_0x2aee('0x24')});});}[_0x2aee('0xe')](_0x2462a5,_0x47e8d0={}){const _0x3572b2=this[_0x2aee('0x21')]['plugins']['get'](_0x2aee('0x7')),_0x552c5a=this[_0x2aee('0x10')](_0x5516ac=>_0x5516ac['is'](_0x2aee('0x1c'),_0x2aee('0xc'))&&_0x2aee('0x4')===_0x5516ac[_0x2aee('0x33')](_0x2aee('0x2a')));if(_0x552c5a['length']<0x1)return;const _0x87dca0=_0x552c5a[_0x2aee('0x34')](_0x1cbb56=>this['editor'][_0x2aee('0x35')][_0x2aee('0x5')](this[_0x2aee('0x21')][_0x2aee('0x35')][_0x2aee('0x1f')](_0x1cbb56,_0x2aee('0x13')),this[_0x2aee('0x21')]['model'][_0x2aee('0x1f')](_0x1cbb56,0x0)));this[_0x2aee('0x21')][_0x2aee('0x35')][_0x2aee('0x9')](()=>{_0x3572b2[_0x2aee('0x3e')](_0x87dca0,{'commandName':_0x2aee('0x38'),'commandParams':[{'startIndex':_0x47e8d0[_0x2aee('0x2d')]}],'formatGroupId':_0x2aee('0x38')});});}[_0x2aee('0x11')](_0x137150){if(_0x2aee('0xa')!=_0x137150[_0x2aee('0x25')]&&_0x2aee('0x28')!=_0x137150[_0x2aee('0x25')])return;const _0xb8cd40=this[_0x2aee('0x21')][_0x2aee('0x36')],{data:_0x22c82d}=_0x137150;if(!_0x22c82d)return;let _0x1c2aab,_0x4e3c49;switch(_0x22c82d[_0x2aee('0x2c')]){case _0x2aee('0x8'):_0x1c2aab=_0x2aee('0x14'),_0x4e3c49={'type':'format','content':_0x5088b8(_0xb8cd40,_0x1c2aab,_0x5088b8(_0xb8cd40,this[_0x2aee('0x1')](_0x22c82d[_0x2aee('0x3')][0x0][_0x2aee('0x25')])))};break;case _0x2aee('0x24'):_0x1c2aab=_0x22c82d[_0x2aee('0x3')][0x0][_0x2aee('0x2b')]?'*Format:*\x20set\x20order\x20to\x20reversed':_0x2aee('0x16'),_0x4e3c49={'type':_0x2aee('0x17'),'content':_0x5088b8(_0xb8cd40,_0x1c2aab)};break;case _0x2aee('0x38'):_0x1c2aab='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4e3c49={'type':_0x2aee('0x17'),'content':_0x5088b8(_0xb8cd40,_0x1c2aab,_0x22c82d[_0x2aee('0x3')][0x0][_0x2aee('0x2d')])};}return _0x4e3c49;}[_0x2aee('0x3b')](){var _0x1d282c,_0x2dc372,_0x1b6682,_0x2426d3;const _0x569b77=this[_0x2aee('0x21')][_0x2aee('0x32')][_0x2aee('0x1b')](_0x2aee('0x1a'));let _0x4dbf81=Array[_0x2aee('0x26')](this[_0x2aee('0x21')][_0x2aee('0x35')][_0x2aee('0xf')]['selection'][_0x2aee('0x18')]());return(null===(_0x1d282c=_0x4dbf81[0x0])||void 0x0===_0x1d282c?void 0x0:_0x1d282c['is'](_0x2aee('0x1c'),_0x2aee('0xc')))&&_0x4dbf81[_0x2aee('0x30')](..._0x569b77[_0x2aee('0x12')](this[_0x2aee('0x21')][_0x2aee('0x35')][_0x2aee('0xf')][_0x2aee('0x27')]['getFirstPosition'](),'backward')),(null===(_0x2dc372=_0x4dbf81[_0x4dbf81[_0x2aee('0x1e')]-0x1])||void 0x0===_0x2dc372?void 0x0:_0x2dc372['is'](_0x2aee('0x1c'),'listItem'))&&_0x4dbf81[_0x2aee('0x2f')](..._0x569b77['getSiblingNodes'](this[_0x2aee('0x21')][_0x2aee('0x35')][_0x2aee('0xf')][_0x2aee('0x27')]['getLastPosition'](),'forward')),_0x4dbf81=[...new Set(_0x4dbf81)],(null===(_0x2426d3=null===(_0x1b6682=this['editor'][_0x2aee('0x35')][_0x2aee('0xf')]['selection'][_0x2aee('0x3d')]())||void 0x0===_0x1b6682?void 0x0:_0x1b6682['parent'])||void 0x0===_0x2426d3?void 0x0:_0x2426d3['is'](_0x2aee('0x1c'),_0x2aee('0xc')))&&(_0x4dbf81=_0x4dbf81[_0x2aee('0xd')](_0x195f28=>_0x195f28['is']('element','listItem'))),_0x4dbf81;}[_0x2aee('0x10')](_0x1a38c6){const _0x57f6a1=this[_0x2aee('0x21')][_0x2aee('0x32')]['get'](_0x2aee('0x1a'));let _0x1bea16=Array['from'](this[_0x2aee('0x21')][_0x2aee('0x35')]['document'][_0x2aee('0x27')][_0x2aee('0x18')]())[_0x2aee('0xd')](_0x1a38c6)['map'](_0x2fc815=>{const _0x4d37f5=this['editor'][_0x2aee('0x35')][_0x2aee('0x1f')](_0x2fc815,0x0);return[..._0x57f6a1[_0x2aee('0x12')](_0x4d37f5,'backward'),..._0x57f6a1[_0x2aee('0x12')](_0x4d37f5,'forward')];})[_0x2aee('0x0')]();return _0x1bea16=[...new Set(_0x1bea16)],_0x1bea16;}[_0x2aee('0x1')](_0x18be25){return _0x2aee('0x37')+this['editor'][_0x2aee('0x32')][_0x2aee('0x1b')](_0x2aee('0x1a'))[_0x2aee('0x23')](_0x18be25)[_0x2aee('0x3c')]()+_0x2aee('0x39')+_0x18be25['toUpperCase']()[_0x2aee('0x20')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ba1=['div','has','_descriptionFactory','get','attribute:url:media','showSuggestionHighlights','registerElementLabel','high','conversion','TrackChangesEditing','locale','mediaEmbed','createEmptyElement','ELEMENT_MEDIA','for','MediaEmbedEditing','dataDowncast','data','afterInit','downcastDispatcher','plugins','media'];(function(_0x337c46,_0x2ba13a){const _0x38b58b=function(_0x5e6ced){while(--_0x5e6ced){_0x337c46['push'](_0x337c46['shift']());}};_0x38b58b(++_0x2ba13a);}(_0x2ba1,0x13c));const _0x38b5=function(_0x337c46,_0x2ba13a){_0x337c46=_0x337c46-0x0;let _0x38b58b=_0x2ba1[_0x337c46];return _0x38b58b;};import{Plugin as _0x51d873}from'ckeditor5/src/core';import{getTranslation as _0xa3ac21}from'../utils/common-translations';export default class ht extends _0x51d873{[_0x38b5('0xa')](){const _0x398f6a=this['editor'];if(!_0x398f6a[_0x38b5('0xc')][_0x38b5('0xf')](_0x38b5('0x7')))return;const _0x1d6412=_0x398f6a[_0x38b5('0xc')][_0x38b5('0x11')](_0x38b5('0x1')),_0x5ede95=_0x398f6a[_0x38b5('0x2')];_0x1d6412['enableCommand'](_0x38b5('0x3')),_0x1d6412[_0x38b5('0x10')][_0x38b5('0x14')]('media',_0x749f1f=>_0xa3ac21(_0x5ede95,_0x38b5('0x5'),_0x749f1f)),_0x398f6a[_0x38b5('0x0')][_0x38b5('0x6')](_0x38b5('0x8'))['elementToElement']({'model':_0x38b5('0xd'),'view':(_0x272d23,{writer:_0x1ee51e,options:_0x4d19dc})=>{if(_0x4d19dc[_0x38b5('0x13')])return _0x1ee51e[_0x38b5('0x4')](_0x38b5('0xe'));},'converterPriority':_0x38b5('0x15')}),_0x398f6a[_0x38b5('0x9')][_0x38b5('0xb')]['on'](_0x38b5('0x12'),(_0x133170,_0x17cca7,_0x4be985)=>{_0x4be985['options'][_0x38b5('0x13')]&&_0x133170['stop']();},{'priority':_0x38b5('0x15')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5bc4=['mention','plugins','get','editor','afterInit','MentionEditing','has'];(function(_0x3e36b4,_0x5bc491){const _0x5b6d30=function(_0x210d6a){while(--_0x210d6a){_0x3e36b4['push'](_0x3e36b4['shift']());}};_0x5b6d30(++_0x5bc491);}(_0x5bc4,0x169));const _0x5b6d=function(_0x3e36b4,_0x5bc491){_0x3e36b4=_0x3e36b4-0x0;let _0x5b6d30=_0x5bc4[_0x3e36b4];return _0x5b6d30;};import{Plugin as _0x2c1b13}from'ckeditor5/src/core';export default class ft extends _0x2c1b13{[_0x5b6d('0x0')](){const _0x497c5c=this[_0x5b6d('0x6')];_0x497c5c['plugins'][_0x5b6d('0x2')](_0x5b6d('0x1'))&&_0x497c5c[_0x5b6d('0x4')][_0x5b6d('0x5')]('TrackChangesEditing')['enableCommand'](_0x5b6d('0x3'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f03=['editor','get','has','afterInit','TrackChangesEditing','pageBreak','plugins','_descriptionFactory','locale'];(function(_0x197315,_0x3f0381){const _0x53607c=function(_0x4cf649){while(--_0x4cf649){_0x197315['push'](_0x197315['shift']());}};_0x53607c(++_0x3f0381);}(_0x3f03,0xce));const _0x5360=function(_0x197315,_0x3f0381){_0x197315=_0x197315-0x0;let _0x53607c=_0x3f03[_0x197315];return _0x53607c;};import{Plugin as _0x28046e}from'ckeditor5/src/core';import{getTranslation as _0x5aae11}from'../utils/common-translations';export default class gt extends _0x28046e{[_0x5360('0x4')](){const _0x32e3a6=this[_0x5360('0x1')];if(!_0x32e3a6[_0x5360('0x7')][_0x5360('0x3')]('PageBreakEditing'))return;_0x32e3a6[_0x5360('0x7')][_0x5360('0x2')]('TrackChangesEditing')['enableCommand'](_0x5360('0x6'));const _0x30804d=_0x32e3a6[_0x5360('0x7')][_0x5360('0x2')](_0x5360('0x5')),_0x3f8d2c=_0x32e3a6[_0x5360('0x0')];_0x30804d[_0x5360('0x8')]['registerElementLabel'](_0x5360('0x6'),_0x3ce29c=>_0x5aae11(_0x3f8d2c,'ELEMENT_PAGE_BREAK',_0x3ce29c));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4459=['name','type','commandName','insertion','span','_registerLegacyDescription','highest','options','toViewPosition','locale','ck-suggestion-marker-split','isTouching','bindElementToMarker','_enableDefaultAttributesIntegration','get','markerRange','*Insert:*\x20%0','model','downcastDispatcher','Paragraph','enableCommand','_descriptionFactory','$text','markerName','registerElementLabel','addMarker:suggestion:insertion','checkChild','insert','format','ELEMENT_PARAGRAPH','editing','consume','TrackChangesEditing','afterInit','getItemLabel','editor','activeMarkers','nodeAfter','registerDescriptionCallback','plugins','isLimit','isBlock','has','writer','paragraph','data','*Change\x20to:*\x20%0','addClass','formatBlock','includes','end','consumable','insertParagraph','schema'];(function(_0x348d7c,_0x4459f6){const _0x4f6c1e=function(_0x10e6eb){while(--_0x10e6eb){_0x348d7c['push'](_0x348d7c['shift']());}};_0x4f6c1e(++_0x4459f6);}(_0x4459,0x140));const _0x4f6c=function(_0x348d7c,_0x4459f6){_0x348d7c=_0x348d7c-0x0;let _0x4f6c1e=_0x4459[_0x348d7c];return _0x4f6c1e;};import{Plugin as _0x2ffad6}from'ckeditor5/src/core';import{getTranslation as _0x41b6b8}from'../utils/common-translations';export default class lt extends _0x2ffad6{[_0x4f6c('0x25')](){const _0x481c96=this['editor'];if(!_0x481c96[_0x4f6c('0x2b')][_0x4f6c('0x2e')](_0x4f6c('0x17')))return;const _0xe53f39=_0x481c96['locale'],_0x43642f=_0x481c96[_0x4f6c('0x2b')]['get'](_0x4f6c('0x24'));_0x43642f[_0x4f6c('0x19')][_0x4f6c('0x1c')]('paragraph',_0x447ba0=>_0x41b6b8(_0xe53f39,_0x4f6c('0x21'),_0x447ba0)),_0x43642f[_0x4f6c('0x11')](_0x4f6c('0x30')),_0x43642f[_0x4f6c('0x18')](_0x4f6c('0x2')),_0x481c96[_0x4f6c('0x22')]['downcastDispatcher']['on'](_0x4f6c('0x1d'),nr(_0x481c96),{'priority':_0x4f6c('0xa')}),_0x481c96[_0x4f6c('0x31')][_0x4f6c('0x16')]['on'](_0x4f6c('0x1d'),(_0x14605f,_0xcbb81d,_0x1801bd)=>{_0x1801bd[_0x4f6c('0xb')]['showSuggestionHighlights']&&nr(_0x481c96,{'showActiveMarker':!0x1})(_0x14605f,_0xcbb81d,_0x1801bd);},{'priority':'highest'});const _0x524827=_0x43642f[_0x4f6c('0x19')];_0x524827[_0x4f6c('0x2a')](_0x4afc45=>{if('insertion'!==_0x4afc45[_0x4f6c('0x5')])return;const {start:_0x6a0243,end:_0x2cde0b}=_0x4afc45['getFirstRange']();if(!_0x6a0243['isTouching'](_0x2cde0b)||!_0x6a0243[_0x4f6c('0x29')])return;const _0x4f1b66=_0x481c96[_0x4f6c('0x15')]['schema'],_0x345d3a=_0x6a0243[_0x4f6c('0x29')];return _0x4f1b66['isBlock'](_0x345d3a)&&!_0x4f1b66[_0x4f6c('0x2c')](_0x345d3a)&&_0x4f1b66[_0x4f6c('0x1e')](_0x345d3a,'$text')?{'type':_0x4f6c('0x7'),'content':_0x41b6b8(_0xe53f39,_0x4f6c('0x14'),_0x524827[_0x4f6c('0x26')](_0x345d3a,0x1))}:void 0x0;}),this[_0x4f6c('0x9')]();}[_0x4f6c('0x9')](){const _0x5067ca=this[_0x4f6c('0x27')],_0x3178de=_0x5067ca[_0x4f6c('0xd')];_0x5067ca[_0x4f6c('0x2b')][_0x4f6c('0x12')](_0x4f6c('0x24'))['_descriptionFactory'][_0x4f6c('0x2a')](_0x495b30=>{if(_0x4f6c('0x34')!=_0x495b30[_0x4f6c('0x5')])return;const {data:_0x4a518e}=_0x495b30;return _0x4a518e&&_0x4f6c('0x30')==_0x4a518e[_0x4f6c('0x6')]?{'type':_0x4f6c('0x20'),'content':_0x41b6b8(_0x3178de,_0x4f6c('0x32'),_0x41b6b8(_0x3178de,_0x4f6c('0x21')))}:void 0x0;});}}function nr(_0x1d878e,{showActiveMarker:_0x25c85d=!0x0}={}){return(_0x1d8e31,_0x15e59,_0x14c84d)=>{const _0x31ee14=_0x1d878e[_0x4f6c('0x2b')][_0x4f6c('0x12')](_0x4f6c('0x24')),_0x55a3e6=_0x15e59[_0x4f6c('0x13')]['start'],_0x30ea21=_0x15e59[_0x4f6c('0x13')][_0x4f6c('0x0')],_0x555b22=_0x1d878e[_0x4f6c('0x15')][_0x4f6c('0x3')];if(!_0x55a3e6[_0x4f6c('0xf')](_0x30ea21)||!_0x55a3e6['nodeAfter'])return;const _0x47fe3e=_0x55a3e6[_0x4f6c('0x29')];if(_0x555b22[_0x4f6c('0x2d')](_0x47fe3e)&&!_0x555b22[_0x4f6c('0x2c')](_0x47fe3e)&&_0x555b22[_0x4f6c('0x1e')](_0x47fe3e,_0x4f6c('0x1a'))){if(!_0x14c84d[_0x4f6c('0x1')][_0x4f6c('0x23')](_0x15e59[_0x4f6c('0x13')],_0x1d8e31[_0x4f6c('0x4')]))return;const _0x11dc32=_0x14c84d[_0x4f6c('0x2f')]['createUIElement'](_0x4f6c('0x8'),{'class':_0x4f6c('0xe')}),_0x202c61=_0x14c84d['mapper'][_0x4f6c('0xc')](_0x30ea21);_0x25c85d&&_0x31ee14[_0x4f6c('0x28')][_0x4f6c('0x35')](_0x15e59['markerName'])&&_0x14c84d[_0x4f6c('0x2f')][_0x4f6c('0x33')]('ck-suggestion-marker--active',_0x11dc32),_0x14c84d['writer'][_0x4f6c('0x1f')](_0x202c61,_0x11dc32),_0x14c84d['mapper'][_0x4f6c('0x10')](_0x11dc32,_0x15e59[_0x4f6c('0x1b')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5682=['format','RemoveFormatEditing','editor','removeFormat','_enableDefaultAttributesIntegration','get','type','TrackChangesEditing','has','_registerLegacyDescription','formatInline','plugins','registerDescriptionCallback','afterInit','locale'];(function(_0xbce77d,_0x568274){const _0x5e233d=function(_0x437e30){while(--_0x437e30){_0xbce77d['push'](_0xbce77d['shift']());}};_0x5e233d(++_0x568274);}(_0x5682,0x95));const _0x5e23=function(_0xbce77d,_0x568274){_0xbce77d=_0xbce77d-0x0;let _0x5e233d=_0x5682[_0xbce77d];return _0x5e233d;};import{Plugin as _0x1f582c}from'ckeditor5/src/core';import{getTranslation as _0x2992d6}from'../utils/common-translations';export default class mt extends _0x1f582c{[_0x5e23('0xe')](){const _0x3f4a0b=this[_0x5e23('0x3')];if(!_0x3f4a0b[_0x5e23('0xc')][_0x5e23('0x9')](_0x5e23('0x2')))return;_0x3f4a0b[_0x5e23('0xc')][_0x5e23('0x6')]('TrackChangesEditing')[_0x5e23('0x5')](_0x5e23('0x4')),this[_0x5e23('0xa')]();}[_0x5e23('0xa')](){const _0x379946=this[_0x5e23('0x3')];_0x379946[_0x5e23('0xc')]['get'](_0x5e23('0x8'))['_descriptionFactory'][_0x5e23('0xd')](_0x366168=>{if('formatBlock'!=_0x366168['type']&&_0x5e23('0xb')!=_0x366168[_0x5e23('0x7')])return;const {data:_0x486d2d}=_0x366168;return _0x486d2d&&_0x5e23('0x4')==_0x486d2d['commandName']?{'type':_0x5e23('0x1'),'content':_0x2992d6(_0x379946[_0x5e23('0x0')],'*Remove\x20all\x20formatting*')}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b07=['discardAllSuggestions','plugins','acceptSelectedSuggestions','get','goToPreviousRestrictedEditingException','TrackChangesEditing','discardSelectedSuggestions','discardSuggestion','editor','acceptSuggestion','trackChanges','RestrictedEditingModeEditing','acceptAllSuggestions','afterInit','enableCommand','has','goToNextRestrictedEditingException'];(function(_0x47ddb3,_0x1b07d1){const _0x1fc4a3=function(_0x30980a){while(--_0x30980a){_0x47ddb3['push'](_0x47ddb3['shift']());}};_0x1fc4a3(++_0x1b07d1);}(_0x1b07,0x192));const _0x1fc4=function(_0x47ddb3,_0x1b07d1){_0x47ddb3=_0x47ddb3-0x0;let _0x1fc4a3=_0x1b07[_0x47ddb3];return _0x1fc4a3;};import{Plugin as _0x286012}from'ckeditor5/src/core';export default class dt extends _0x286012{[_0x1fc4('0x2')](){const _0x110586=this[_0x1fc4('0xe')];if(!_0x110586[_0x1fc4('0x7')][_0x1fc4('0x4')]('RestrictedEditingModeEditing'))return;const _0x45fefd=_0x110586[_0x1fc4('0x7')][_0x1fc4('0x9')](_0x1fc4('0xb'));_0x45fefd['enableCommand'](_0x1fc4('0xa')),_0x45fefd['enableCommand'](_0x1fc4('0x5'));const _0x3d8231=_0x110586[_0x1fc4('0x7')][_0x1fc4('0x9')](_0x1fc4('0x0'));_0x3d8231[_0x1fc4('0x3')](_0x1fc4('0x10')),_0x3d8231[_0x1fc4('0x3')](_0x1fc4('0xf')),_0x3d8231['enableCommand'](_0x1fc4('0xd')),_0x3d8231[_0x1fc4('0x3')](_0x1fc4('0x1')),_0x3d8231['enableCommand'](_0x1fc4('0x6')),_0x3d8231[_0x1fc4('0x3')](_0x1fc4('0x8')),_0x3d8231[_0x1fc4('0x3')](_0x1fc4('0xc'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5722=['locale','high','ELEMENT_LINE_BREAK','addMarker:suggestion:deletion','TrackChangesEditing','softBreak','createPositionBefore','get','enableCommand','split','activeMarkers','ck-suggestion-marker-','init','mapper','bindElementToMarker','data','markerRange','addMarker:suggestion:insertion','markerName','deletion','requires','editing','shiftEnter','insert','span','registerElementLabel','addClass','createUIElement','model','addMarker:suggestion','consumable','includes','writer','downcastDispatcher','editor','getItems'];(function(_0x5eda2e,_0x5722b){const _0xd3856e=function(_0x5ac485){while(--_0x5ac485){_0x5eda2e['push'](_0x5eda2e['shift']());}};_0xd3856e(++_0x5722b);}(_0x5722,0x1f2));const _0xd385=function(_0x5eda2e,_0x5722b){_0x5eda2e=_0x5eda2e-0x0;let _0xd3856e=_0x5722[_0x5eda2e];return _0xd3856e;};import{Plugin as _0x50510e}from'ckeditor5/src/core';import{ShiftEnter as _0x4b6dab}from'ckeditor5/src/enter';import{getTranslation as _0xf04cc2}from'../utils/common-translations';export default class pt extends _0x50510e{static get[_0xd385('0x1a')](){return[_0x4b6dab];}[_0xd385('0x12')](){const _0x5e54b9=this[_0xd385('0x4')],_0x40e7de=_0x5e54b9['plugins']['get'](_0xd385('0xa'));_0x40e7de[_0xd385('0xe')](_0xd385('0x1c')),_0x5e54b9[_0xd385('0x1b')]['downcastDispatcher']['on'](_0xd385('0x17'),re(_0x5e54b9),{'priority':_0xd385('0x7')}),_0x5e54b9['editing']['downcastDispatcher']['on'](_0xd385('0x9'),re(_0x5e54b9),{'priority':_0xd385('0x7')}),_0x5e54b9[_0xd385('0x15')][_0xd385('0x3')]['on'](_0xd385('0x23'),(_0x1cb6b1,_0x1ed0fc,_0x5511d5)=>{_0x5511d5['options']['showSuggestionHighlights']&&re(_0x5e54b9,{'showActiveMarker':!0x1})(_0x1cb6b1,_0x1ed0fc,_0x5511d5);}),_0x40e7de['_descriptionFactory'][_0xd385('0x1f')](_0xd385('0xb'),_0x4961eb=>_0xf04cc2(_0x5e54b9[_0xd385('0x6')],_0xd385('0x8'),_0x4961eb));}}function re(_0x5d770c,{showActiveMarker:_0x2b85fe=!0x0}={}){return(_0x10b6df,_0x48f5f7,_0x17848b)=>{const _0x3f1fda=_0x5d770c['plugins'][_0xd385('0xd')](_0xd385('0xa'));if(!_0x17848b[_0xd385('0x0')]['test'](_0x48f5f7[_0xd385('0x16')],_0x10b6df['name']))return;const _0x3c8fd1=_0x5d770c[_0xd385('0x22')];for(const _0x2bd78f of _0x48f5f7[_0xd385('0x16')][_0xd385('0x5')]()){if(!_0x2bd78f['is']('element','softBreak'))continue;const _0x55a957=_0xd385('0x19')==_0x48f5f7[_0xd385('0x18')][_0xd385('0xf')](':')[0x1]?'merge':_0xd385('0xf'),_0x479112=_0x17848b[_0xd385('0x2')][_0xd385('0x21')](_0xd385('0x1e'),{'class':_0xd385('0x11')+_0x55a957}),_0x2da7df=_0x17848b[_0xd385('0x13')]['toViewPosition'](_0x3c8fd1[_0xd385('0xc')](_0x2bd78f));_0x2b85fe&&_0x3f1fda[_0xd385('0x10')][_0xd385('0x1')](_0x48f5f7[_0xd385('0x18')])&&_0x17848b['writer'][_0xd385('0x20')]('ck-suggestion-marker--active',_0x479112),_0x17848b[_0xd385('0x2')][_0xd385('0x1d')](_0x2da7df,_0x479112),_0x17848b[_0xd385('0x13')][_0xd385('0x14')](_0x479112,_0x48f5f7[_0xd385('0x18')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43f1=['get','selection','plugins','change','isCollapsed','has','model','FORMAT_RESTRICTED_DISABLED','restrictedEditingException','markInlineFormat','commands','commandParams','formatBlock','editor','_descriptionFactory','FORMAT_RESTRICTED_ENABLED','getRanges','format','afterInit','registerDescriptionCallback','type','StandardEditingModeEditing','forceValue','from','document'];(function(_0x16066e,_0x43f11f){const _0x1367e1=function(_0x35b536){while(--_0x35b536){_0x16066e['push'](_0x16066e['shift']());}};_0x1367e1(++_0x43f11f);}(_0x43f1,0xc0));const _0x1367=function(_0x16066e,_0x43f11f){_0x16066e=_0x16066e-0x0;let _0x1367e1=_0x43f1[_0x16066e];return _0x1367e1;};import{Plugin as _0x12bd00}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x936043}from'./utils';import{getTranslation as _0x215189}from'../utils/common-translations';export default class kt extends _0x12bd00{[_0x1367('0x1')](){const _0x5371aa=this[_0x1367('0x15')],_0x4b7f1c=_0x5371aa[_0x1367('0xe')],_0x44595f=_0x5371aa['locale'];if(!_0x5371aa['plugins'][_0x1367('0xd')](_0x1367('0x4')))return;const _0x3354b1=_0x5371aa[_0x1367('0xa')][_0x1367('0x8')]('TrackChangesEditing'),_0x6255cd=_0x1367('0x10'),_0x2e0dae=_0x5371aa[_0x1367('0x12')][_0x1367('0x8')](_0x6255cd);_0x3354b1['enableCommand'](_0x6255cd,(_0xccd786,_0x19718e={})=>{const _0x7d5b65=_0x4b7f1c[_0x1367('0x7')][_0x1367('0x9')];if(_0x7d5b65[_0x1367('0xc')])return void _0xccd786(_0x19718e);const _0x4cbed7=void 0x0!==_0x19718e[_0x1367('0x5')]?_0x19718e[_0x1367('0x5')]:!_0x2e0dae['value'];_0x4b7f1c[_0x1367('0xb')](()=>{const _0x2046f6=Array[_0x1367('0x6')](_0x7d5b65[_0x1367('0x18')]());for(const _0x393871 of _0x2046f6){const _0x422e7d=_0x4cbed7?[_0x393871]:_0x936043(_0x6255cd,_0x393871,_0x4b7f1c);for(const _0x2c7834 of _0x422e7d)_0x3354b1[_0x1367('0x11')](_0x2c7834,{'commandName':_0x6255cd,'commandParams':[{'forceValue':_0x4cbed7}]});}});}),_0x3354b1[_0x1367('0x16')][_0x1367('0x2')](_0x969c4a=>{if(_0x1367('0x14')!=_0x969c4a[_0x1367('0x3')]&&'formatInline'!=_0x969c4a['type'])return;const {data:_0x56868}=_0x969c4a;return _0x56868&&_0x56868['commandName']==_0x6255cd?_0x56868[_0x1367('0x13')][0x0][_0x1367('0x5')]?{'type':'format','content':_0x215189(_0x44595f,_0x1367('0x17'))}:{'type':_0x1367('0x0'),'content':_0x215189(_0x44595f,_0x1367('0xf'))}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2aab=['FORMAT_STYLE','StyleUtils','commandParams','format','toLowerCase','locale','commandName','styleName','GeneralHtmlSupport','block','style','_registerBlockAttribute','get','element','config','has','registerAttributeLabel','type','inline','_registerLegacyDescription','definitions','afterInit','*Set\x20format:*\x20%0','Style','TrackChangesEditing','getGhsAttributeNameForElement','_descriptionFactory','editor','DataSchema','plugins','add','_enableDefaultAttributesIntegration','registerDescriptionCallback','normalizeConfig'];(function(_0x40501f,_0x2aab99){const _0x368be3=function(_0x5d75fb){while(--_0x5d75fb){_0x40501f['push'](_0x40501f['shift']());}};_0x368be3(++_0x2aab99);}(_0x2aab,0x172));const _0x368b=function(_0x40501f,_0x2aab99){_0x40501f=_0x40501f-0x0;let _0x368be3=_0x2aab[_0x40501f];return _0x368be3;};import{Plugin as _0x100b49}from'ckeditor5/src/core';import{getTranslation as _0x2d6f6c}from'../utils/common-translations';export default class bt extends _0x100b49{[_0x368b('0x19')](){const _0x55d9c9=this[_0x368b('0x1f')];if(!_0x55d9c9[_0x368b('0x21')]['has'](_0x368b('0x1b'))||!_0x55d9c9[_0x368b('0x21')][_0x368b('0x13')]('DataSchema'))return;const _0x356981=_0x55d9c9['plugins']['get'](_0x368b('0x1c')),_0x4f28d1=_0x55d9c9['locale'],_0x492015=_0x55d9c9[_0x368b('0x12')][_0x368b('0x10')]('style'),_0x5da210=_0x55d9c9['plugins'][_0x368b('0x10')](_0x368b('0xc')),_0x24cefd=_0x55d9c9['plugins']['get'](_0x368b('0x5'))[_0x368b('0x3')](_0x55d9c9[_0x368b('0x21')]['get'](_0x368b('0x20')),_0x492015[_0x368b('0x18')]);_0x356981[_0x368b('0x1')](_0x368b('0xe'));const _0x507ecb=new Set();for(const _0x2c2ff1 of _0x24cefd[_0x368b('0xd')]){const _0x41757a=_0x5da210[_0x368b('0x1d')](_0x2c2ff1[_0x368b('0x11')]);_0x507ecb[_0x368b('0x0')](_0x41757a);}const _0x3b8fab=new Set();for(const _0x56f564 of _0x24cefd[_0x368b('0x16')]){const _0x2439ff=_0x5da210['getGhsAttributeNameForElement'](_0x56f564['element']);_0x3b8fab[_0x368b('0x0')](_0x2439ff);for(const _0x392610 of _0x56f564['ghsAttributes'])_0x3b8fab[_0x368b('0x0')](_0x392610);}for(const _0x5cf17c of _0x507ecb)_0x356981[_0x368b('0xf')](_0x5cf17c),_0x356981['_descriptionFactory'][_0x368b('0x14')](_0x5cf17c,_0x2d6f6c(_0x4f28d1,_0x368b('0x4')));for(const _0x4e1506 of _0x3b8fab)_0x356981['_registerInlineAttribute'](_0x4e1506),_0x356981[_0x368b('0x1e')][_0x368b('0x14')](_0x4e1506,_0x2d6f6c(_0x4f28d1,_0x368b('0x4')));this[_0x368b('0x17')]();}[_0x368b('0x17')](){const _0x453866=this['editor'],_0x16d145=_0x453866[_0x368b('0x9')];_0x453866['plugins'][_0x368b('0x10')](_0x368b('0x1c'))[_0x368b('0x1e')][_0x368b('0x2')](_0x49b5ca=>{if('formatBlock'!=_0x49b5ca[_0x368b('0x15')]&&'formatInline'!=_0x49b5ca[_0x368b('0x15')])return;const {data:_0x4c021e}=_0x49b5ca;return _0x4c021e&&_0x368b('0xe')===_0x4c021e[_0x368b('0xa')]?_0x4c021e[_0x368b('0x6')][0x0]['forceValue']?{'type':_0x368b('0x7'),'content':_0x2d6f6c(_0x16d145,_0x368b('0x1a'),_0x4c021e[_0x368b('0x6')][0x0]['styleName'][_0x368b('0x8')]())}:{'type':_0x368b('0x7'),'content':_0x2d6f6c(_0x16d145,'*Remove\x20format:*\x20%0',_0x4c021e[_0x368b('0x6')][0x0][_0x368b('0xb')][_0x368b('0x8')]())}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3705=['TableUtils','above','locale','suggestion','selection','isArray','startsWith','order','isIntersectingWithRange','element','span','createTableWalker','document','getColumnIndexes','_tablePostFixingSubtypes','substr','*Insert:*\x20%0','createPositionAt','deletion','tableColumn','subType','every','addRange','last','_setupColumnsRowsFixing','maxColumn','from','getAttribute','start','TrackChangesEditing','rowspan','ELEMENT_TABLE_WITH_TEXT','colspan','_tableSuggestions','removeClass','ELEMENT_TABLE_COLUMN_WITH_TEXT','refresh','insertTableRowBelow','removeTableColumn','getChangedMarkers','registerPostFixer','rootName','tableRow','change','has','writer','fromRange','getContainedElement','getRowIndexes','toLowerCase','type','downcastDispatcher','_splitMarkerName','get','insert','$graveyard','forceValue','TableEditing','add','registerDescriptionCallback','table','isEqual','map','createRangeIn','setSelection','tableCell','*Remove:*\x20%0','end','classes','MAX_SAFE_INTEGER','cell','batch','enableCommand','selectTableRow','low','removeTableRow','findAncestor','insertTableRowAbove','getSuggestion','filter','insertTableColumnRight','ELEMENT_TABLE_ROW','getItems','ELEMENT_TABLE','first','minColumn','markMultiRangeInsertion','maxRow','$textProxy','some','addClass','discard','data','join','ELEMENT_TABLE_ROW_WITH_TEXT','includes','max','min','showSuggestionHighlights','_suggestionFactory','plugins','accept','getRanges','nodeAfter','left','ELEMENT_TABLE_COLUMN','push','insertion','_descriptionFactory','editor','name','_acceptFormatSuggestionCallbackFactory','options','hasAttribute','root','enqueueChange','differ','change:data','isInContent','execute','model','getSelectionAffectedTableCells','registerCustomCallback','getChanges','createRangeOn','detach','selectTableColumn','addMarker:suggestion','tablePaste','getChildren','nodeBefore','length','_getCoordsForCells','commands','_getSuggestionCoords','mapper','position','afterInit'];(function(_0x2b8e0a,_0x3705c8){const _0x16cd0b=function(_0xa1e5b){while(--_0xa1e5b){_0x2b8e0a['push'](_0x2b8e0a['shift']());}};_0x16cd0b(++_0x3705c8);}(_0x3705,0x11b));const _0x16cd=function(_0x2b8e0a,_0x3705c8){_0x2b8e0a=_0x2b8e0a-0x0;let _0x16cd0b=_0x3705[_0x2b8e0a];return _0x16cd0b;};import{Plugin as _0x352181}from'ckeditor5/src/core';import{LiveRange as _0x2fd254}from'ckeditor5/src/engine';import{setHighlightHandling as _0x3825de}from'ckeditor5/src/widget';import{getTranslation as _0x200c9c}from'../utils/common-translations';export default class wt extends _0x352181{constructor(_0x592c12){super(_0x592c12),this[_0x16cd('0x7')]=[_0x16cd('0x23'),_0x16cd('0xc')],this['_tableSuggestions']=new Set();}[_0x16cd('0x82')](){const _0x3f94a9=this['editor'],_0x4eaf2d=_0x3f94a9[_0x16cd('0x71')][_0x16cd('0x5')][_0x16cd('0x87')];if(!_0x3f94a9[_0x16cd('0x5d')][_0x16cd('0x25')](_0x16cd('0x32')))return;const _0x3d15be=_0x3f94a9[_0x16cd('0x85')],_0x32e3f3=_0x3f94a9['plugins'][_0x16cd('0x2e')](_0x16cd('0x16')),_0x45af24=_0x3f94a9[_0x16cd('0x5d')][_0x16cd('0x2e')]('TableUtils');_0x32e3f3[_0x16cd('0x65')]['registerElementLabel'](_0x16cd('0x35'),_0x3712e5=>_0x200c9c(_0x3d15be,_0x16cd('0x4c'),_0x3712e5)),this['_setupColumnsRowsFixing'](),_0x32e3f3[_0x16cd('0x41')]('insertTable'),_0x32e3f3[_0x16cd('0x41')](_0x16cd('0x42')),_0x32e3f3[_0x16cd('0x41')](_0x16cd('0x77'));for(const _0x48c45a of[_0x16cd('0x46'),_0x16cd('0x1e')]){const _0xf697bb=_0x3f94a9[_0x16cd('0x7e')][_0x16cd('0x2e')](_0x48c45a);_0x32e3f3[_0x16cd('0x41')](_0x48c45a,_0x54a879=>{_0x3f94a9[_0x16cd('0x71')][_0x16cd('0x24')](_0x48ff87=>{_0x54a879();const _0x697bb9=_0x16cd('0x84')===_0xf697bb[_0x16cd('0x0')],_0x106502=_0x45af24[_0x16cd('0x72')](_0x4eaf2d),_0x51564d=_0x45af24['getRowIndexes'](_0x106502),_0x3f700d=_0x697bb9?_0x51564d['first']-0x1:_0x51564d[_0x16cd('0x10')]+0x1,_0x2d20b9=_0x106502[0x0][_0x16cd('0x45')](_0x16cd('0x35')),_0x5507d1=_0x45af24[_0x16cd('0x4')](_0x2d20b9,{'startRow':_0x3f700d,'endRow':_0x3f700d}),_0x169bff=Array[_0x16cd('0x13')](_0x5507d1)[_0x16cd('0x37')](_0x434b89=>_0x48ff87[_0x16cd('0x75')](_0x434b89[_0x16cd('0x3f')]));_0x32e3f3['markMultiRangeInsertion'](_0x169bff,_0x16cd('0x23'));});});}for(const _0x32494f of['insertTableColumnLeft',_0x16cd('0x49')]){const _0x4fad29=_0x3f94a9[_0x16cd('0x7e')][_0x16cd('0x2e')](_0x32494f);_0x32e3f3[_0x16cd('0x41')](_0x32494f,_0x8646a9=>{_0x3f94a9['model'][_0x16cd('0x24')](_0x54b1a6=>{_0x8646a9();const _0x12d4e4=_0x16cd('0x61')===_0x4fad29[_0x16cd('0x0')],_0x150f47=_0x45af24[_0x16cd('0x72')](_0x4eaf2d),_0x44fd8b=_0x45af24['getColumnIndexes'](_0x150f47),_0x5cc492=_0x12d4e4?_0x44fd8b[_0x16cd('0x4d')]-0x1:_0x44fd8b[_0x16cd('0x10')]+0x1,_0x2d20e8=_0x150f47[0x0][_0x16cd('0x45')](_0x16cd('0x35')),_0x35b8da=_0x45af24[_0x16cd('0x4')](_0x2d20e8,{'startRow':0x0,'column':_0x5cc492,'includeAllSlots':!0x1}),_0x4d1172=Array[_0x16cd('0x13')](_0x35b8da)[_0x16cd('0x37')](_0x11c5af=>_0x54b1a6[_0x16cd('0x75')](_0x11c5af[_0x16cd('0x3f')]));_0x32e3f3[_0x16cd('0x4f')](_0x4d1172,_0x16cd('0xc'));});});}for(const _0x4acc88 of[_0x16cd('0x44'),_0x16cd('0x1f')]){const _0x2dca30=_0x4acc88[_0x16cd('0x8')](0xb),_0x34d3b3=_0x2dca30[_0x16cd('0x2a')](),_0x455c6c=_0x34d3b3[_0x16cd('0x8')](0x0,0x3)+_0x16cd('0x3'),_0x2edb8c=_0x16cd('0x35')+_0x2dca30,_0x32f846=_0x16cd('0x5a')+_0x2dca30,_0x1cd13c='max'+_0x2dca30;_0x32e3f3[_0x16cd('0x41')](_0x4acc88,()=>{_0x3f94a9['model'][_0x16cd('0x24')](_0x4b6341=>{const _0x552d16=_0x45af24[_0x16cd('0x72')](_0x4eaf2d),_0xfb190a=_0x552d16[0x0]['findAncestor'](_0x16cd('0x35'));let _0x1f19e9;if(_0x16cd('0x44')==_0x4acc88){const _0x47e91c=_0x45af24[_0x16cd('0x29')](_0x552d16);_0x1f19e9={'startRow':_0x47e91c[_0x16cd('0x4d')],'endRow':_0x47e91c[_0x16cd('0x10')],'includeAllSlots':!0x0};}else{const _0x2cf865=_0x45af24[_0x16cd('0x6')](_0x552d16);_0x1f19e9={'startColumn':_0x2cf865[_0x16cd('0x4d')],'endColumn':_0x2cf865[_0x16cd('0x10')],'includeAllSlots':!0x0};}const _0x5e8a33=_0x45af24['createTableWalker'](_0xfb190a,_0x1f19e9),_0x2b368e=Array[_0x16cd('0x13')](_0x5e8a33)[_0x16cd('0x37')](({cell:_0x3c4ea3})=>_0x3c4ea3),_0x482a58=se(_0x2b368e[_0x16cd('0x48')](_0x29a066=>_0x29a066[_0x16cd('0x6a')](_0x455c6c))),_0x22f0cb=se(_0x2b368e[_0x16cd('0x48')](_0x3e0d88=>!_0x3e0d88[_0x16cd('0x6a')](_0x455c6c)))[_0x16cd('0x37')](_0x2b1bc9=>_0x4b6341[_0x16cd('0x75')](_0x2b1bc9)),_0x46e9c7=_0x32e3f3['markMultiRangeDeletion'](_0x22f0cb,_0x2edb8c);if(_0x46e9c7&&(_0x16cd('0x23')==_0x46e9c7['subType']||_0x16cd('0xc')==_0x46e9c7[_0x16cd('0xd')])){const _0x3b493e=this[_0x16cd('0x7f')](_0x46e9c7);for(const _0x432c8c of _0x482a58){const _0x311b00=_0x4b6341[_0x16cd('0x75')](_0x432c8c),_0x2e60de=_0x45af24['getCellLocation'](_0x432c8c),_0x36cf9e=_0x432c8c[_0x16cd('0x14')](_0x455c6c)-0x1,_0x4a858d=_0x3b493e[_0x32f846],_0x4cdef7=_0x3b493e[_0x1cd13c];_0x4a858d<=_0x2e60de[_0x34d3b3]&&_0x2e60de[_0x34d3b3]+_0x36cf9e<=_0x4cdef7&&_0x46e9c7['addRange'](_0x311b00);}}});});}function _0x159ede(_0x35e285){const _0x2fbd21=Array[_0x16cd('0x13')](_0x4eaf2d[_0x16cd('0x5f')]())['map'](_0x2beec7=>_0x2fd254[_0x16cd('0x27')](_0x2beec7));_0x3f94a9[_0x16cd('0x71')][_0x16cd('0x24')](_0x5b9f50=>{const _0x5054d5=_0x5b9f50[_0x16cd('0x40')];_0x35e285=_0x35e285[_0x16cd('0x48')](_0x23abc7=>_0x16cd('0x30')!=_0x23abc7[_0x16cd('0x6b')][_0x16cd('0x22')]),_0x5b9f50[_0x16cd('0x39')](_0x35e285),_0x3f94a9[_0x16cd('0x7e')]['get'](_0x16cd('0x44'))['refresh'](),_0x3f94a9['execute'](_0x16cd('0x44'),{'forceDefaultExecution':!0x0}),_0x3f94a9[_0x16cd('0x71')]['enqueueChange'](()=>{_0x3f94a9[_0x16cd('0x71')][_0x16cd('0x6c')](_0x5054d5,_0x42d81f=>{const _0x2a1096=_0x2fbd21[_0x16cd('0x48')](_0xeb2d98=>'$graveyard'!=_0xeb2d98[_0x16cd('0x6b')]['rootName']);_0x2a1096[_0x16cd('0x7c')]>0x0&&_0x42d81f[_0x16cd('0x39')](_0x2a1096);for(const _0x44fae7 of _0x2fbd21)_0x44fae7['detach']();});});});}function _0x3ed122(_0x2909af){_0x3f94a9[_0x16cd('0x71')][_0x16cd('0x24')](_0x49eb33=>{const _0x4751af=Array[_0x16cd('0x13')](_0x4eaf2d['getRanges']())[_0x16cd('0x37')](_0x436955=>_0x2fd254[_0x16cd('0x27')](_0x436955)),_0x5a76dd=[];for(const _0x4b79a8 of _0x2909af)for(const _0x35cf62 of _0x4b79a8[_0x16cd('0x4b')]({'shallow':!0x0}))_0x5a76dd[_0x16cd('0x63')](_0x35cf62);for(const _0x27a367 of _0x5a76dd)_0x16cd('0x30')!=_0x27a367['root'][_0x16cd('0x22')]&&(_0x49eb33['setSelection'](_0x49eb33[_0x16cd('0xa')](_0x27a367,0x0)),_0x3f94a9[_0x16cd('0x7e')][_0x16cd('0x2e')](_0x16cd('0x1f'))[_0x16cd('0x1d')](),_0x3f94a9[_0x16cd('0x70')]('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x36e52c=_0x4751af[_0x16cd('0x48')](_0x2c01b1=>'$graveyard'!=_0x2c01b1[_0x16cd('0x6b')][_0x16cd('0x22')]);_0x36e52c['length']>0x0&&_0x49eb33[_0x16cd('0x39')](_0x36e52c);for(const _0x16ec35 of _0x4751af)_0x16ec35[_0x16cd('0x76')]();});}function _0x5c35de(_0x8f19f8,_0x50cfe4){return _0x50cfe4[_0x16cd('0xe')](_0xb52208=>_0x8f19f8[_0x16cd('0x52')](_0x27577d=>_0x27577d[_0x16cd('0x3c')][_0x16cd('0x36')](_0xb52208[_0x16cd('0x15')])||_0xb52208[_0x16cd('0x3c')][_0x16cd('0x36')](_0x27577d[_0x16cd('0x15')])));}function _0xbdc88c(_0x43d335,_0x3946e0){return _0x43d335[_0x16cd('0x52')](_0xc2614=>_0x3946e0[_0x16cd('0x52')](_0x5b1305=>_0xc2614['end']['isTouching'](_0x5b1305[_0x16cd('0x15')])));}_0x3f94a9[_0x16cd('0x55')][_0x16cd('0x2c')]['on'](_0x16cd('0x78'),(_0x209dcf,_0x457c5f,_0x4369d1)=>{if(!_0x4369d1[_0x16cd('0x69')][_0x16cd('0x5b')])return;const _0x2d6051=_0x457c5f['item'];if(!_0x2d6051)return;const _0x6cc845=_0x4369d1[_0x16cd('0x80')]['toViewElement'](_0x2d6051);function _0x29d65a(_0x37f9e7){return Array[_0x16cd('0x88')](_0x37f9e7)?_0x37f9e7:[_0x37f9e7];}_0x6cc845&&'tableCell'===_0x2d6051[_0x16cd('0x67')]&&_0x3825de(_0x6cc845,_0x4369d1[_0x16cd('0x26')],(_0x34203e,_0x5d4818,_0x37b04e)=>_0x37b04e[_0x16cd('0x53')](_0x29d65a(_0x5d4818[_0x16cd('0x3d')]),_0x34203e),(_0x21ad38,_0x32b9e8,_0x276ddf)=>_0x276ddf[_0x16cd('0x1b')](_0x29d65a(_0x32b9e8['classes']),_0x21ad38));},{'priority':'highest'}),_0x32e3f3[_0x16cd('0x65')][_0x16cd('0x34')](_0x100d0d=>{if(_0x16cd('0x64')!=_0x100d0d[_0x16cd('0x2b')]&&'deletion'!=_0x100d0d[_0x16cd('0x2b')])return;const _0x5ef19f=_0x100d0d[_0x16cd('0x28')]();if(null!=_0x5ef19f&&_0x5ef19f['is'](_0x16cd('0x2'),_0x16cd('0x35'))){if(_0x16cd('0x64')==_0x100d0d[_0x16cd('0x2b')]){const _0x325dba=_0x100d0d['getItems']()[_0x16cd('0x48')](_0x5d68e7=>_0x5d68e7['is'](_0x16cd('0x51')))[_0x16cd('0x37')](_0x288be6=>_0x288be6[_0x16cd('0x55')]);if(_0x325dba[_0x16cd('0x7c')])return{'type':_0x16cd('0x64'),'content':_0x200c9c(_0x3d15be,_0x16cd('0x9'),_0x200c9c(_0x3d15be,_0x16cd('0x18'),'\x22'+_0x325dba['join']('\x20')+'\x22'))};}if('deletion'==_0x100d0d[_0x16cd('0x2b')]){const _0x8a6689=_0x100d0d[_0x16cd('0x4b')]()[_0x16cd('0x48')](_0x591311=>_0x591311['is'](_0x16cd('0x51')))[_0x16cd('0x37')](_0x1e6a85=>_0x1e6a85[_0x16cd('0x55')]);if(_0x8a6689['length'])return{'type':_0x16cd('0xb'),'content':_0x200c9c(_0x3d15be,'*Remove:*\x20%0',_0x200c9c(_0x3d15be,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x8a6689['join']('\x20')+'\x22'))};}}}),_0x32e3f3['_descriptionFactory'][_0x16cd('0x34')](_0x5c74f8=>{if(_0x16cd('0x23')==_0x5c74f8[_0x16cd('0xd')]){const _0x2cfce5=_0x5c74f8[_0x16cd('0x4b')]()[_0x16cd('0x48')](_0x4f69c6=>_0x4f69c6['is'](_0x16cd('0x51')))['map'](_0x1ca9ad=>_0x1ca9ad['data']),_0xe83f78=this[_0x16cd('0x7f')](_0x5c74f8),_0x39f971=_0xe83f78[_0x16cd('0x50')]-_0xe83f78['minRow']+0x1;if(_0x16cd('0x64')==_0x5c74f8['type'])return _0x2cfce5['length']?{'type':'insertion','content':_0x200c9c(_0x3d15be,_0x16cd('0x9'),_0x200c9c(_0x3d15be,_0x16cd('0x57'),[_0x39f971,'\x22'+_0x2cfce5['join']('\x20')+'\x22']))}:{'type':'insertion','content':_0x200c9c(_0x3d15be,_0x16cd('0x9'),_0x200c9c(_0x3d15be,_0x16cd('0x4a'),_0x39f971))};if(_0x16cd('0xb')==_0x5c74f8[_0x16cd('0x2b')])return _0x2cfce5[_0x16cd('0x7c')]?{'type':_0x16cd('0xb'),'content':_0x200c9c(_0x3d15be,'*Remove:*\x20%0',_0x200c9c(_0x3d15be,_0x16cd('0x57'),[_0x39f971,'\x22'+_0x2cfce5[_0x16cd('0x56')]('\x20')+'\x22']))}:{'type':_0x16cd('0xb'),'content':_0x200c9c(_0x3d15be,_0x16cd('0x3b'),_0x200c9c(_0x3d15be,_0x16cd('0x4a'),_0x39f971))};}if('tableColumn'==_0x5c74f8[_0x16cd('0xd')]){const _0x11265d=_0x5c74f8[_0x16cd('0x4b')]()[_0x16cd('0x48')](_0x18433e=>_0x18433e['is'](_0x16cd('0x51')))[_0x16cd('0x37')](_0x3a31de=>_0x3a31de[_0x16cd('0x55')]),_0x4aaf8d=this['_getSuggestionCoords'](_0x5c74f8),_0x4590cb=_0x4aaf8d[_0x16cd('0x12')]-_0x4aaf8d[_0x16cd('0x4e')]+0x1;if(_0x16cd('0x64')==_0x5c74f8[_0x16cd('0x2b')])return _0x11265d[_0x16cd('0x7c')]?{'type':_0x16cd('0x64'),'content':_0x200c9c(_0x3d15be,_0x16cd('0x9'),_0x200c9c(_0x3d15be,_0x16cd('0x1c'),[_0x4590cb,'\x22'+_0x11265d[_0x16cd('0x56')]('\x20')+'\x22']))}:{'type':_0x16cd('0x64'),'content':_0x200c9c(_0x3d15be,_0x16cd('0x9'),_0x200c9c(_0x3d15be,_0x16cd('0x62'),_0x4590cb))};if(_0x16cd('0xb')==_0x5c74f8['type'])return _0x11265d[_0x16cd('0x7c')]?{'type':'deletion','content':_0x200c9c(_0x3d15be,_0x16cd('0x3b'),_0x200c9c(_0x3d15be,_0x16cd('0x1c'),[_0x4590cb,'\x22'+_0x11265d[_0x16cd('0x56')]('\x20')+'\x22']))}:{'type':_0x16cd('0xb'),'content':_0x200c9c(_0x3d15be,_0x16cd('0x3b'),_0x200c9c(_0x3d15be,_0x16cd('0x62'),_0x4590cb))};}}),_0x32e3f3[_0x16cd('0x5c')][_0x16cd('0x73')]('insertion',_0x16cd('0x23'),_0x16cd('0x54'),_0x159ede),_0x32e3f3[_0x16cd('0x5c')][_0x16cd('0x73')]('deletion','tableRow','accept',_0x159ede),_0x32e3f3[_0x16cd('0x5c')][_0x16cd('0x73')](_0x16cd('0x64'),_0x16cd('0xc'),'discard',_0x3ed122),_0x32e3f3['_suggestionFactory'][_0x16cd('0x73')]('deletion',_0x16cd('0xc'),_0x16cd('0x5e'),_0x3ed122),_0x32e3f3[_0x16cd('0x5c')]['registerCustomCallback'](_0x16cd('0x64'),_0x16cd('0xc'),'join',_0x5c35de),_0x32e3f3['_suggestionFactory'][_0x16cd('0x73')]('deletion',_0x16cd('0xc'),_0x16cd('0x56'),_0x5c35de),_0x32e3f3[_0x16cd('0x5c')][_0x16cd('0x73')](_0x16cd('0x64'),'tableRow',_0x16cd('0x56'),_0xbdc88c),_0x32e3f3[_0x16cd('0x5c')]['registerCustomCallback'](_0x16cd('0xb'),_0x16cd('0x23'),_0x16cd('0x56'),_0xbdc88c);}[_0x16cd('0x68')](){const _0x2fa25c=this[_0x16cd('0x66')],_0x4cdc7e=_0x2fa25c[_0x16cd('0x71')][_0x16cd('0x5')][_0x16cd('0x87')];return(_0x1d13e4,_0x4fd1f8)=>{_0x2fa25c[_0x16cd('0x71')][_0x16cd('0x24')](_0x27dca1=>{const {commandName:_0x478a02,commandParams:_0x30b394}=_0x4fd1f8;let _0x30f454=_0x1d13e4[0x0][_0x16cd('0x3c')][_0x16cd('0x7b')];_0x30b394&&_0x30b394[0x0]&&!0x1===_0x30b394[0x0][_0x16cd('0x31')]&&(_0x30f454=_0x1d13e4[0x0][_0x16cd('0x15')][_0x16cd('0x60')]);const _0x522fd8=_0x27dca1[_0x16cd('0x38')](_0x30f454);if(_0x16cd('0x30')==_0x522fd8[_0x16cd('0x6b')][_0x16cd('0x22')])return;const _0x4349ca=Array[_0x16cd('0x13')](_0x4cdc7e[_0x16cd('0x5f')]())[_0x16cd('0x37')](_0x400c5d=>_0x2fd254[_0x16cd('0x27')](_0x400c5d));_0x27dca1['setSelection'](_0x522fd8),_0x2fa25c[_0x16cd('0x7e')][_0x16cd('0x2e')](_0x478a02)[_0x16cd('0x1d')](),_0x30b394[_0x16cd('0x63')]({'forceDefaultExecution':!0x0}),_0x2fa25c[_0x16cd('0x70')](_0x478a02,..._0x30b394);const _0xe69820=_0x4349ca[_0x16cd('0x48')](_0xf8cbf8=>'$graveyard'!=_0xf8cbf8[_0x16cd('0x6b')][_0x16cd('0x22')]);_0xe69820[_0x16cd('0x7c')]>0x0&&_0x27dca1[_0x16cd('0x39')](_0xe69820);for(const _0x1185c0 of _0x4349ca)_0x1185c0[_0x16cd('0x76')]();});};}[_0x16cd('0x7d')](_0x2a7e59){const _0xddc812=this[_0x16cd('0x66')][_0x16cd('0x5d')]['get'](_0x16cd('0x83'));let _0x116b88=Number[_0x16cd('0x3e')],_0x10e582=Number['MIN_SAFE_INTEGER'],_0x3252cf=Number[_0x16cd('0x3e')],_0x146183=Number['MIN_SAFE_INTEGER'];for(const _0x557e49 of _0x2a7e59){if('$graveyard'==_0x557e49[_0x16cd('0x6b')][_0x16cd('0x22')])continue;const {row:_0x38e30f,column:_0x85318f}=_0xddc812['getCellLocation'](_0x557e49),_0x3cc85a=_0x557e49[_0x16cd('0x6a')](_0x16cd('0x17'))?_0x557e49['getAttribute'](_0x16cd('0x17'))-0x1:0x0,_0x51b8e0=_0x557e49['hasAttribute']('colspan')?_0x557e49[_0x16cd('0x14')](_0x16cd('0x19'))-0x1:0x0;_0x116b88=_0x38e30f<_0x116b88?_0x38e30f:_0x116b88,_0x10e582=_0x38e30f+_0x3cc85a>_0x10e582?_0x38e30f+_0x3cc85a:_0x10e582,_0x3252cf=_0x85318f<_0x3252cf?_0x85318f:_0x3252cf,_0x146183=_0x85318f+_0x51b8e0>_0x146183?_0x85318f+_0x51b8e0:_0x146183;}return{'minRow':_0x116b88,'maxRow':_0x10e582,'minColumn':_0x3252cf,'maxColumn':_0x146183};}[_0x16cd('0x11')](){const _0x79e0ca=this[_0x16cd('0x66')],_0x36bd8e=_0x79e0ca[_0x16cd('0x5d')][_0x16cd('0x2e')](_0x16cd('0x16')),_0x454244=_0x79e0ca['plugins']['get'](_0x16cd('0x83'));_0x79e0ca[_0x16cd('0x71')][_0x16cd('0x5')]['on'](_0x16cd('0x6e'),()=>{const _0x55c355=Array['from'](_0x79e0ca[_0x16cd('0x71')][_0x16cd('0x5')][_0x16cd('0x6d')][_0x16cd('0x20')]());for(const {name:_0x5b53e6,data:_0x54ed84}of _0x55c355){const {group:_0x29f4c9,id:_0x4a479d,subType:_0x78648f}=_0x36bd8e[_0x16cd('0x2d')](_0x5b53e6);if(_0x16cd('0x86')!=_0x29f4c9)continue;if(null!=_0x54ed84['oldRange'])continue;const _0x688730=_0x36bd8e[_0x16cd('0x47')](_0x4a479d);this[_0x16cd('0x7')][_0x16cd('0x58')](_0x78648f)&&this[_0x16cd('0x1a')][_0x16cd('0x33')](_0x688730);}},{'priority':_0x16cd('0x43')});const _0x3d533d=(_0x2a67d4,_0x5a0f51)=>{let _0xcf7ca7=!0x1;const _0x39abc8=_0x5a0f51['createRangeOn'](_0x2a67d4),_0x50bb44=_0x2a67d4['findAncestor'](_0x16cd('0x35')),_0x249715=_0x454244['getCellLocation'](_0x2a67d4);for(const _0x56312b of this['_tableSuggestions']){const _0x503984=_0x56312b[_0x16cd('0xd')],_0x2d7b2d=_0x503984[_0x16cd('0x89')](_0x16cd('0x79')),_0x1fac69=_0x503984[_0x16cd('0x8')](_0x2d7b2d?0xa:0x5),_0x25a0f7=_0x1fac69[_0x16cd('0x2a')](),_0x5472e3=_0x25a0f7['substr'](0x0,0x3)+_0x16cd('0x3'),_0x59e485=_0x16cd('0x5a')+_0x1fac69,_0x45f7da=_0x16cd('0x59')+_0x1fac69;if(!_0x56312b[_0x16cd('0x6f')])continue;if(_0x50bb44!=_0x56312b['getFirstRange']()['start'][_0x16cd('0x45')]('table'))continue;if(_0x56312b[_0x16cd('0x1')](_0x39abc8))continue;const _0x2520af=_0x2a67d4[_0x16cd('0x6a')](_0x5472e3)?_0x2a67d4[_0x16cd('0x14')](_0x5472e3)-0x1:0x0,_0x69fb97=this[_0x16cd('0x7f')](_0x56312b),_0x1c4b5f=_0x69fb97[_0x59e485],_0x59b717=_0x69fb97[_0x45f7da];_0x1c4b5f<=_0x249715[_0x25a0f7]&&_0x249715[_0x25a0f7]+_0x2520af<=_0x59b717&&(_0x56312b[_0x16cd('0xf')](_0x39abc8),_0xcf7ca7=!0x0);}return _0xcf7ca7;};_0x79e0ca['model']['document'][_0x16cd('0x21')](_0x16c154=>{let _0x488c54=!0x1;for(const _0x256d25 of _0x79e0ca[_0x16cd('0x71')][_0x16cd('0x5')][_0x16cd('0x6d')][_0x16cd('0x74')]())if(_0x16cd('0x2f')==_0x256d25[_0x16cd('0x2b')]){if(_0x16cd('0x23')==_0x256d25[_0x16cd('0x67')])for(const _0x4baf2e of _0x256d25[_0x16cd('0x81')][_0x16cd('0x60')][_0x16cd('0x7a')]())_0x488c54=_0x488c54||_0x3d533d(_0x4baf2e,_0x16c154);else _0x16cd('0x3a')==_0x256d25[_0x16cd('0x67')]&&(_0x488c54=_0x488c54||_0x3d533d(_0x256d25[_0x16cd('0x81')]['nodeAfter'],_0x16c154));}return _0x488c54;});}[_0x16cd('0x7f')](_0x545fe5){return this[_0x16cd('0x7d')](_0x545fe5[_0x16cd('0x5f')]()['map'](_0x3a4da0=>_0x3a4da0[_0x16cd('0x15')][_0x16cd('0x60')]));}}function se(_0x48ea80){return Array[_0x16cd('0x13')](new Set(_0x48ea80)['values']());}
|
|
23
|
+
const _0x3dcc=['createPositionAt','writer','root','commands','TableEditing','item','plugins','_tablePostFixingSubtypes','differ','ELEMENT_TABLE_ROW','editor','nodeAfter','isArray','ELEMENT_TABLE_ROW_WITH_TEXT','registerCustomCallback','tableColumn','hasAttribute','ELEMENT_TABLE_COLUMN_WITH_TEXT','_suggestionFactory','insert','ELEMENT_TABLE_WITH_TEXT','oldRange','data','registerDescriptionCallback','getRowIndexes','tableRow','document','get','insertion','afterInit','toViewElement','insertTableRowAbove','isTouching','last','classes','getColumnIndexes','type','getCellLocation','TrackChangesEditing','insertTable','showSuggestionHighlights','change','_descriptionFactory','downcastDispatcher','name','removeClass','insertTableColumnLeft','insertTableRowBelow','enqueueChange','fromRange','table','substr','selection','getChangedMarkers','removeTableRow','markMultiRangeInsertion','start','end','refresh','locale','enableCommand','findAncestor','model','ELEMENT_TABLE_COLUMN','forceValue','registerPostFixer','min','getSelectionAffectedTableCells','registerElementLabel','getAttribute','options','selectTableColumn','first','map','markMultiRangeDeletion','selectTableRow','isIntersectingWithRange','join','discard','$textProxy','has','setSelection','push','filter','*Insert:*\x20%0','maxRow','insertTableColumnRight','getSuggestion','span','length','getFirstRange','startsWith','rootName','MAX_SAFE_INTEGER','maxColumn','colspan','rowspan','highest','TableUtils','from','accept','change:data','element','tablePaste','tableCell','subType','isEqual','isInContent','$graveyard','values','removeTableColumn','createTableWalker','_setupColumnsRowsFixing','execute','minRow','*Remove:*\x20%0','getRanges','_getSuggestionCoords','cell','createRangeOn','createRangeIn','deletion','_tableSuggestions','low','detach','getItems','MIN_SAFE_INTEGER'];(function(_0x59d24c,_0x3dccf0){const _0x15373b=function(_0x15f683){while(--_0x15f683){_0x59d24c['push'](_0x59d24c['shift']());}};_0x15373b(++_0x3dccf0);}(_0x3dcc,0x1dd));const _0x1537=function(_0x59d24c,_0x3dccf0){_0x59d24c=_0x59d24c-0x0;let _0x15373b=_0x3dcc[_0x59d24c];return _0x15373b;};import{Plugin as _0x37e42f}from'ckeditor5/src/core';import{LiveRange as _0x278a3f}from'ckeditor5/src/engine';import{setHighlightHandling as _0x81ddcf}from'ckeditor5/src/widget';import{getTranslation as _0x34198e}from'../utils/common-translations';export default class wt extends _0x37e42f{constructor(_0x2c02e2){super(_0x2c02e2),this[_0x1537('0x26')]=[_0x1537('0x38'),_0x1537('0x2e')],this[_0x1537('0x1a')]=new Set();}[_0x1537('0x3c')](){const _0x41a2d8=this['editor'],_0x4a21da=_0x41a2d8['model'][_0x1537('0x39')]['selection'];if(!_0x41a2d8[_0x1537('0x25')][_0x1537('0x6f')](_0x1537('0x23')))return;const _0x196583=_0x41a2d8[_0x1537('0x5a')],_0x4eac52=_0x41a2d8[_0x1537('0x25')][_0x1537('0x3a')](_0x1537('0x45')),_0x591792=_0x41a2d8[_0x1537('0x25')][_0x1537('0x3a')](_0x1537('0x2'));_0x4eac52['_descriptionFactory'][_0x1537('0x63')](_0x1537('0x51'),_0x2db98e=>_0x34198e(_0x196583,'ELEMENT_TABLE',_0x2db98e)),this[_0x1537('0x10')](),_0x4eac52[_0x1537('0x5b')](_0x1537('0x46')),_0x4eac52['enableCommand'](_0x1537('0x6a')),_0x4eac52[_0x1537('0x5b')](_0x1537('0x66'));for(const _0x3b6c56 of[_0x1537('0x3e'),_0x1537('0x4e')]){const _0x39445b=_0x41a2d8[_0x1537('0x22')][_0x1537('0x3a')](_0x3b6c56);_0x4eac52['enableCommand'](_0x3b6c56,_0x1fbfa7=>{_0x41a2d8['model'][_0x1537('0x48')](_0x59498b=>{_0x1fbfa7();const _0x632a04='above'===_0x39445b['order'],_0x3289d2=_0x591792[_0x1537('0x62')](_0x4a21da),_0x475541=_0x591792[_0x1537('0x37')](_0x3289d2),_0x174e63=_0x632a04?_0x475541['first']-0x1:_0x475541[_0x1537('0x40')]+0x1,_0x47cf64=_0x3289d2[0x0]['findAncestor'](_0x1537('0x51')),_0x8b3a5f=_0x591792['createTableWalker'](_0x47cf64,{'startRow':_0x174e63,'endRow':_0x174e63}),_0x1cc4fc=Array[_0x1537('0x3')](_0x8b3a5f)[_0x1537('0x68')](_0x577d09=>_0x59498b[_0x1537('0x17')](_0x577d09[_0x1537('0x16')]));_0x4eac52[_0x1537('0x56')](_0x1cc4fc,_0x1537('0x38'));});});}for(const _0x27bfb3 of[_0x1537('0x4d'),_0x1537('0x75')]){const _0x111984=_0x41a2d8['commands'][_0x1537('0x3a')](_0x27bfb3);_0x4eac52['enableCommand'](_0x27bfb3,_0x33e89a=>{_0x41a2d8[_0x1537('0x5d')][_0x1537('0x48')](_0x241660=>{_0x33e89a();const _0x461f69='left'===_0x111984['order'],_0x4b4286=_0x591792[_0x1537('0x62')](_0x4a21da),_0x1f720e=_0x591792[_0x1537('0x42')](_0x4b4286),_0x202638=_0x461f69?_0x1f720e['first']-0x1:_0x1f720e[_0x1537('0x40')]+0x1,_0x4fdb91=_0x4b4286[0x0]['findAncestor'](_0x1537('0x51')),_0x4e4088=_0x591792[_0x1537('0xf')](_0x4fdb91,{'startRow':0x0,'column':_0x202638,'includeAllSlots':!0x1}),_0x42cf11=Array[_0x1537('0x3')](_0x4e4088)[_0x1537('0x68')](_0x52331a=>_0x241660[_0x1537('0x17')](_0x52331a['cell']));_0x4eac52['markMultiRangeInsertion'](_0x42cf11,_0x1537('0x2e'));});});}for(const _0x4359b6 of[_0x1537('0x55'),_0x1537('0xe')]){const _0x22f06a=_0x4359b6[_0x1537('0x52')](0xb),_0x2576c1=_0x22f06a['toLowerCase'](),_0x245992=_0x2576c1[_0x1537('0x52')](0x0,0x3)+_0x1537('0x77'),_0x1beeb8=_0x1537('0x51')+_0x22f06a,_0x52da7c=_0x1537('0x61')+_0x22f06a,_0x25b1ee='max'+_0x22f06a;_0x4eac52[_0x1537('0x5b')](_0x4359b6,()=>{_0x41a2d8[_0x1537('0x5d')][_0x1537('0x48')](_0x5b7c43=>{const _0x4002cd=_0x591792[_0x1537('0x62')](_0x4a21da),_0x588928=_0x4002cd[0x0][_0x1537('0x5c')](_0x1537('0x51'));let _0xaf17d3;if(_0x1537('0x55')==_0x4359b6){const _0x42f1c1=_0x591792[_0x1537('0x37')](_0x4002cd);_0xaf17d3={'startRow':_0x42f1c1[_0x1537('0x67')],'endRow':_0x42f1c1[_0x1537('0x40')],'includeAllSlots':!0x0};}else{const _0x214893=_0x591792['getColumnIndexes'](_0x4002cd);_0xaf17d3={'startColumn':_0x214893[_0x1537('0x67')],'endColumn':_0x214893[_0x1537('0x40')],'includeAllSlots':!0x0};}const _0x2caadf=_0x591792['createTableWalker'](_0x588928,_0xaf17d3),_0x29ae04=Array[_0x1537('0x3')](_0x2caadf)[_0x1537('0x68')](({cell:_0x45cf65})=>_0x45cf65),_0x37f7fe=se(_0x29ae04[_0x1537('0x72')](_0x2d98ad=>_0x2d98ad[_0x1537('0x2f')](_0x245992))),_0x1282a2=se(_0x29ae04[_0x1537('0x72')](_0x391bbc=>!_0x391bbc['hasAttribute'](_0x245992)))[_0x1537('0x68')](_0x3bfba5=>_0x5b7c43[_0x1537('0x17')](_0x3bfba5)),_0x1d8daf=_0x4eac52[_0x1537('0x69')](_0x1282a2,_0x1beeb8);if(_0x1d8daf&&(_0x1537('0x38')==_0x1d8daf[_0x1537('0x9')]||'tableColumn'==_0x1d8daf[_0x1537('0x9')])){const _0x39113f=this[_0x1537('0x15')](_0x1d8daf);for(const _0x4027c6 of _0x37f7fe){const _0x3475a7=_0x5b7c43[_0x1537('0x17')](_0x4027c6),_0x34e2a0=_0x591792[_0x1537('0x44')](_0x4027c6),_0xbfadc1=_0x4027c6[_0x1537('0x64')](_0x245992)-0x1,_0x726d3c=_0x39113f[_0x52da7c],_0x229a0a=_0x39113f[_0x25b1ee];_0x726d3c<=_0x34e2a0[_0x2576c1]&&_0x34e2a0[_0x2576c1]+_0xbfadc1<=_0x229a0a&&_0x1d8daf['addRange'](_0x3475a7);}}});});}function _0x53a6f2(_0x4f9dbe){const _0x134d79=Array[_0x1537('0x3')](_0x4a21da[_0x1537('0x14')]())[_0x1537('0x68')](_0x1e3c70=>_0x278a3f[_0x1537('0x50')](_0x1e3c70));_0x41a2d8[_0x1537('0x5d')]['change'](_0x13d851=>{const _0x7d8060=_0x13d851['batch'];_0x4f9dbe=_0x4f9dbe[_0x1537('0x72')](_0xd3b5e4=>'$graveyard'!=_0xd3b5e4[_0x1537('0x21')][_0x1537('0x7b')]),_0x13d851['setSelection'](_0x4f9dbe),_0x41a2d8[_0x1537('0x22')][_0x1537('0x3a')](_0x1537('0x55'))[_0x1537('0x59')](),_0x41a2d8[_0x1537('0x11')](_0x1537('0x55'),{'forceDefaultExecution':!0x0}),_0x41a2d8[_0x1537('0x5d')][_0x1537('0x4f')](()=>{_0x41a2d8['model'][_0x1537('0x4f')](_0x7d8060,_0x326e17=>{const _0x1200cf=_0x134d79[_0x1537('0x72')](_0x30aab4=>_0x1537('0xc')!=_0x30aab4[_0x1537('0x21')]['rootName']);_0x1200cf[_0x1537('0x78')]>0x0&&_0x326e17['setSelection'](_0x1200cf);for(const _0x2745ed of _0x134d79)_0x2745ed[_0x1537('0x1c')]();});});});}function _0x4f5221(_0xe202e2){_0x41a2d8[_0x1537('0x5d')][_0x1537('0x48')](_0x20e603=>{const _0x11308d=Array[_0x1537('0x3')](_0x4a21da[_0x1537('0x14')]())[_0x1537('0x68')](_0x915c2a=>_0x278a3f['fromRange'](_0x915c2a)),_0x4fe1a5=[];for(const _0x14545b of _0xe202e2)for(const _0x3d639a of _0x14545b['getItems']({'shallow':!0x0}))_0x4fe1a5[_0x1537('0x71')](_0x3d639a);for(const _0x727149 of _0x4fe1a5)_0x1537('0xc')!=_0x727149['root']['rootName']&&(_0x20e603['setSelection'](_0x20e603[_0x1537('0x1f')](_0x727149,0x0)),_0x41a2d8[_0x1537('0x22')][_0x1537('0x3a')](_0x1537('0xe'))['refresh'](),_0x41a2d8['execute'](_0x1537('0xe'),{'forceDefaultExecution':!0x0}));const _0x4ddad3=_0x11308d['filter'](_0x41b588=>_0x1537('0xc')!=_0x41b588[_0x1537('0x21')][_0x1537('0x7b')]);_0x4ddad3[_0x1537('0x78')]>0x0&&_0x20e603[_0x1537('0x70')](_0x4ddad3);for(const _0xa6891f of _0x11308d)_0xa6891f[_0x1537('0x1c')]();});}function _0x45ea53(_0x4b5ee8,_0x49796d){return _0x49796d['every'](_0x4c4c32=>_0x4b5ee8['some'](_0x2eca32=>_0x2eca32[_0x1537('0x58')]['isEqual'](_0x4c4c32[_0x1537('0x57')])||_0x4c4c32[_0x1537('0x58')][_0x1537('0xa')](_0x2eca32[_0x1537('0x57')])));}function _0x57d5ad(_0x317087,_0x608ec0){return _0x317087['some'](_0x328eff=>_0x608ec0['some'](_0x3668a8=>_0x328eff[_0x1537('0x58')][_0x1537('0x3f')](_0x3668a8[_0x1537('0x57')])));}_0x41a2d8[_0x1537('0x35')][_0x1537('0x4a')]['on']('addMarker:suggestion',(_0x105f1a,_0x3c589b,_0x3a1c2c)=>{if(!_0x3a1c2c[_0x1537('0x65')][_0x1537('0x47')])return;const _0x377c3d=_0x3c589b[_0x1537('0x24')];if(!_0x377c3d)return;const _0x13e402=_0x3a1c2c['mapper'][_0x1537('0x3d')](_0x377c3d);function _0x17f383(_0x2bc2ff){return Array[_0x1537('0x2b')](_0x2bc2ff)?_0x2bc2ff:[_0x2bc2ff];}_0x13e402&&_0x1537('0x8')===_0x377c3d[_0x1537('0x4b')]&&_0x81ddcf(_0x13e402,_0x3a1c2c[_0x1537('0x20')],(_0x290673,_0x1a57e3,_0x128461)=>_0x128461['addClass'](_0x17f383(_0x1a57e3[_0x1537('0x41')]),_0x290673),(_0x540f2f,_0x2e413e,_0x40d441)=>_0x40d441[_0x1537('0x4c')](_0x17f383(_0x2e413e[_0x1537('0x41')]),_0x540f2f));},{'priority':_0x1537('0x1')}),_0x4eac52[_0x1537('0x49')]['registerDescriptionCallback'](_0x3ec928=>{if(_0x1537('0x3b')!=_0x3ec928[_0x1537('0x43')]&&_0x1537('0x19')!=_0x3ec928[_0x1537('0x43')])return;const _0x5889ad=_0x3ec928['getContainedElement']();if(null!=_0x5889ad&&_0x5889ad['is'](_0x1537('0x6'),_0x1537('0x51'))){if('insertion'==_0x3ec928[_0x1537('0x43')]){const _0x30d0d9=_0x3ec928['getItems']()[_0x1537('0x72')](_0x5ee355=>_0x5ee355['is'](_0x1537('0x6e')))[_0x1537('0x68')](_0x4e55f5=>_0x4e55f5['data']);if(_0x30d0d9[_0x1537('0x78')])return{'type':_0x1537('0x3b'),'content':_0x34198e(_0x196583,_0x1537('0x73'),_0x34198e(_0x196583,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x30d0d9['join']('\x20')+'\x22'))};}if(_0x1537('0x19')==_0x3ec928[_0x1537('0x43')]){const _0x4dc805=_0x3ec928['getItems']()[_0x1537('0x72')](_0x5b25a0=>_0x5b25a0['is'](_0x1537('0x6e')))['map'](_0x1912e4=>_0x1912e4[_0x1537('0x35')]);if(_0x4dc805[_0x1537('0x78')])return{'type':'deletion','content':_0x34198e(_0x196583,'*Remove:*\x20%0',_0x34198e(_0x196583,_0x1537('0x33'),'\x22'+_0x4dc805['join']('\x20')+'\x22'))};}}}),_0x4eac52[_0x1537('0x49')][_0x1537('0x36')](_0x33a10a=>{if('tableRow'==_0x33a10a[_0x1537('0x9')]){const _0x367c1f=_0x33a10a[_0x1537('0x1d')]()['filter'](_0x39f0e0=>_0x39f0e0['is'](_0x1537('0x6e')))[_0x1537('0x68')](_0x530ba9=>_0x530ba9[_0x1537('0x35')]),_0x1a9def=this[_0x1537('0x15')](_0x33a10a),_0x23f365=_0x1a9def[_0x1537('0x74')]-_0x1a9def[_0x1537('0x12')]+0x1;if(_0x1537('0x3b')==_0x33a10a[_0x1537('0x43')])return _0x367c1f[_0x1537('0x78')]?{'type':_0x1537('0x3b'),'content':_0x34198e(_0x196583,'*Insert:*\x20%0',_0x34198e(_0x196583,_0x1537('0x2c'),[_0x23f365,'\x22'+_0x367c1f[_0x1537('0x6c')]('\x20')+'\x22']))}:{'type':_0x1537('0x3b'),'content':_0x34198e(_0x196583,_0x1537('0x73'),_0x34198e(_0x196583,_0x1537('0x28'),_0x23f365))};if(_0x1537('0x19')==_0x33a10a[_0x1537('0x43')])return _0x367c1f[_0x1537('0x78')]?{'type':_0x1537('0x19'),'content':_0x34198e(_0x196583,_0x1537('0x13'),_0x34198e(_0x196583,_0x1537('0x2c'),[_0x23f365,'\x22'+_0x367c1f[_0x1537('0x6c')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x34198e(_0x196583,_0x1537('0x13'),_0x34198e(_0x196583,_0x1537('0x28'),_0x23f365))};}if('tableColumn'==_0x33a10a[_0x1537('0x9')]){const _0x4c4463=_0x33a10a['getItems']()['filter'](_0x42532f=>_0x42532f['is'](_0x1537('0x6e')))[_0x1537('0x68')](_0x19a584=>_0x19a584['data']),_0x53c48a=this['_getSuggestionCoords'](_0x33a10a),_0x5c6e9b=_0x53c48a[_0x1537('0x7d')]-_0x53c48a['minColumn']+0x1;if(_0x1537('0x3b')==_0x33a10a[_0x1537('0x43')])return _0x4c4463[_0x1537('0x78')]?{'type':'insertion','content':_0x34198e(_0x196583,_0x1537('0x73'),_0x34198e(_0x196583,_0x1537('0x30'),[_0x5c6e9b,'\x22'+_0x4c4463[_0x1537('0x6c')]('\x20')+'\x22']))}:{'type':_0x1537('0x3b'),'content':_0x34198e(_0x196583,_0x1537('0x73'),_0x34198e(_0x196583,_0x1537('0x5e'),_0x5c6e9b))};if(_0x1537('0x19')==_0x33a10a['type'])return _0x4c4463[_0x1537('0x78')]?{'type':_0x1537('0x19'),'content':_0x34198e(_0x196583,_0x1537('0x13'),_0x34198e(_0x196583,_0x1537('0x30'),[_0x5c6e9b,'\x22'+_0x4c4463[_0x1537('0x6c')]('\x20')+'\x22']))}:{'type':_0x1537('0x19'),'content':_0x34198e(_0x196583,'*Remove:*\x20%0',_0x34198e(_0x196583,_0x1537('0x5e'),_0x5c6e9b))};}}),_0x4eac52['_suggestionFactory'][_0x1537('0x2d')](_0x1537('0x3b'),_0x1537('0x38'),_0x1537('0x6d'),_0x53a6f2),_0x4eac52[_0x1537('0x31')]['registerCustomCallback'](_0x1537('0x19'),_0x1537('0x38'),_0x1537('0x4'),_0x53a6f2),_0x4eac52['_suggestionFactory'][_0x1537('0x2d')](_0x1537('0x3b'),_0x1537('0x2e'),'discard',_0x4f5221),_0x4eac52[_0x1537('0x31')][_0x1537('0x2d')](_0x1537('0x19'),_0x1537('0x2e'),_0x1537('0x4'),_0x4f5221),_0x4eac52['_suggestionFactory']['registerCustomCallback']('insertion',_0x1537('0x2e'),_0x1537('0x6c'),_0x45ea53),_0x4eac52[_0x1537('0x31')][_0x1537('0x2d')](_0x1537('0x19'),_0x1537('0x2e'),_0x1537('0x6c'),_0x45ea53),_0x4eac52[_0x1537('0x31')][_0x1537('0x2d')](_0x1537('0x3b'),_0x1537('0x38'),_0x1537('0x6c'),_0x57d5ad),_0x4eac52[_0x1537('0x31')]['registerCustomCallback']('deletion',_0x1537('0x38'),_0x1537('0x6c'),_0x57d5ad);}['_acceptFormatSuggestionCallbackFactory'](){const _0x10b588=this[_0x1537('0x29')],_0x448b2c=_0x10b588[_0x1537('0x5d')][_0x1537('0x39')][_0x1537('0x53')];return(_0x64a799,_0x59de4b)=>{_0x10b588[_0x1537('0x5d')][_0x1537('0x48')](_0x56b9a7=>{const {commandName:_0x1adf63,commandParams:_0x340956}=_0x59de4b;let _0x23d2bb=_0x64a799[0x0]['end']['nodeBefore'];_0x340956&&_0x340956[0x0]&&!0x1===_0x340956[0x0][_0x1537('0x5f')]&&(_0x23d2bb=_0x64a799[0x0][_0x1537('0x57')][_0x1537('0x2a')]);const _0x1df5a3=_0x56b9a7[_0x1537('0x18')](_0x23d2bb);if('$graveyard'==_0x1df5a3[_0x1537('0x21')]['rootName'])return;const _0x4033d=Array[_0x1537('0x3')](_0x448b2c[_0x1537('0x14')]())[_0x1537('0x68')](_0x131671=>_0x278a3f[_0x1537('0x50')](_0x131671));_0x56b9a7[_0x1537('0x70')](_0x1df5a3),_0x10b588[_0x1537('0x22')][_0x1537('0x3a')](_0x1adf63)[_0x1537('0x59')](),_0x340956[_0x1537('0x71')]({'forceDefaultExecution':!0x0}),_0x10b588[_0x1537('0x11')](_0x1adf63,..._0x340956);const _0x1c7ba9=_0x4033d[_0x1537('0x72')](_0x369df5=>_0x1537('0xc')!=_0x369df5[_0x1537('0x21')][_0x1537('0x7b')]);_0x1c7ba9['length']>0x0&&_0x56b9a7[_0x1537('0x70')](_0x1c7ba9);for(const _0x28d438 of _0x4033d)_0x28d438[_0x1537('0x1c')]();});};}['_getCoordsForCells'](_0x5b49d1){const _0x54edc7=this[_0x1537('0x29')][_0x1537('0x25')][_0x1537('0x3a')]('TableUtils');let _0x3fe948=Number[_0x1537('0x7c')],_0x1a1e1c=Number[_0x1537('0x1e')],_0xe575d3=Number[_0x1537('0x7c')],_0x242d7a=Number[_0x1537('0x1e')];for(const _0x69ead9 of _0x5b49d1){if(_0x1537('0xc')==_0x69ead9[_0x1537('0x21')]['rootName'])continue;const {row:_0x3074bc,column:_0x4ff0fe}=_0x54edc7[_0x1537('0x44')](_0x69ead9),_0x1031b8=_0x69ead9[_0x1537('0x2f')]('rowspan')?_0x69ead9[_0x1537('0x64')](_0x1537('0x0'))-0x1:0x0,_0x42eb2a=_0x69ead9[_0x1537('0x2f')](_0x1537('0x7e'))?_0x69ead9[_0x1537('0x64')](_0x1537('0x7e'))-0x1:0x0;_0x3fe948=_0x3074bc<_0x3fe948?_0x3074bc:_0x3fe948,_0x1a1e1c=_0x3074bc+_0x1031b8>_0x1a1e1c?_0x3074bc+_0x1031b8:_0x1a1e1c,_0xe575d3=_0x4ff0fe<_0xe575d3?_0x4ff0fe:_0xe575d3,_0x242d7a=_0x4ff0fe+_0x42eb2a>_0x242d7a?_0x4ff0fe+_0x42eb2a:_0x242d7a;}return{'minRow':_0x3fe948,'maxRow':_0x1a1e1c,'minColumn':_0xe575d3,'maxColumn':_0x242d7a};}['_setupColumnsRowsFixing'](){const _0x571484=this[_0x1537('0x29')],_0x1aa78a=_0x571484[_0x1537('0x25')][_0x1537('0x3a')]('TrackChangesEditing'),_0x39d7b7=_0x571484[_0x1537('0x25')][_0x1537('0x3a')](_0x1537('0x2'));_0x571484[_0x1537('0x5d')][_0x1537('0x39')]['on'](_0x1537('0x5'),()=>{const _0x3d20e0=Array['from'](_0x571484[_0x1537('0x5d')]['document'][_0x1537('0x27')][_0x1537('0x54')]());for(const {name:_0x152945,data:_0x38ab06}of _0x3d20e0){const {group:_0x58fa02,id:_0x2c3159,subType:_0x31e098}=_0x1aa78a['_splitMarkerName'](_0x152945);if('suggestion'!=_0x58fa02)continue;if(null!=_0x38ab06[_0x1537('0x34')])continue;const _0x23bafd=_0x1aa78a[_0x1537('0x76')](_0x2c3159);this[_0x1537('0x26')]['includes'](_0x31e098)&&this[_0x1537('0x1a')]['add'](_0x23bafd);}},{'priority':_0x1537('0x1b')});const _0x2dde17=(_0x714c3d,_0x2db110)=>{let _0x599057=!0x1;const _0x159b27=_0x2db110[_0x1537('0x17')](_0x714c3d),_0x3d5426=_0x714c3d[_0x1537('0x5c')](_0x1537('0x51')),_0x47fbc9=_0x39d7b7['getCellLocation'](_0x714c3d);for(const _0x26b4c4 of this[_0x1537('0x1a')]){const _0x3d8b37=_0x26b4c4[_0x1537('0x9')],_0x30a551=_0x3d8b37[_0x1537('0x7a')](_0x1537('0x7')),_0x120ae0=_0x3d8b37[_0x1537('0x52')](_0x30a551?0xa:0x5),_0x3362da=_0x120ae0['toLowerCase'](),_0x3d06a6=_0x3362da[_0x1537('0x52')](0x0,0x3)+'span',_0x5b9502=_0x1537('0x61')+_0x120ae0,_0x5ad976='max'+_0x120ae0;if(!_0x26b4c4[_0x1537('0xb')])continue;if(_0x3d5426!=_0x26b4c4[_0x1537('0x79')]()[_0x1537('0x57')][_0x1537('0x5c')](_0x1537('0x51')))continue;if(_0x26b4c4[_0x1537('0x6b')](_0x159b27))continue;const _0x494104=_0x714c3d[_0x1537('0x2f')](_0x3d06a6)?_0x714c3d[_0x1537('0x64')](_0x3d06a6)-0x1:0x0,_0x4ece2e=this[_0x1537('0x15')](_0x26b4c4),_0x3ff44b=_0x4ece2e[_0x5b9502],_0x2a17af=_0x4ece2e[_0x5ad976];_0x3ff44b<=_0x47fbc9[_0x3362da]&&_0x47fbc9[_0x3362da]+_0x494104<=_0x2a17af&&(_0x26b4c4['addRange'](_0x159b27),_0x599057=!0x0);}return _0x599057;};_0x571484[_0x1537('0x5d')][_0x1537('0x39')][_0x1537('0x60')](_0x42b906=>{let _0x5b9206=!0x1;for(const _0xae240d of _0x571484[_0x1537('0x5d')][_0x1537('0x39')][_0x1537('0x27')]['getChanges']())if(_0x1537('0x32')==_0xae240d[_0x1537('0x43')]){if(_0x1537('0x38')==_0xae240d[_0x1537('0x4b')])for(const _0x4a52d3 of _0xae240d['position']['nodeAfter']['getChildren']())_0x5b9206=_0x5b9206||_0x2dde17(_0x4a52d3,_0x42b906);else _0x1537('0x8')==_0xae240d[_0x1537('0x4b')]&&(_0x5b9206=_0x5b9206||_0x2dde17(_0xae240d['position'][_0x1537('0x2a')],_0x42b906));}return _0x5b9206;});}[_0x1537('0x15')](_0x280e13){return this['_getCoordsForCells'](_0x280e13['getRanges']()[_0x1537('0x68')](_0x3a3dd1=>_0x3a3dd1[_0x1537('0x57')][_0x1537('0x2a')]));}}function se(_0x1f4319){return Array[_0x1537('0x3')](new Set(_0x1f4319)[_0x1537('0xd')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3dea=['toggleTableCaption','plugins','editor','get','TableCaptionEditing','enableCommand','requires','afterInit','has'];(function(_0xe85345,_0x3dea61){const _0x3e434c=function(_0x4b6b4e){while(--_0x4b6b4e){_0xe85345['push'](_0xe85345['shift']());}};_0x3e434c(++_0x3dea61);}(_0x3dea,0xa1));const _0x3e43=function(_0xe85345,_0x3dea61){_0xe85345=_0xe85345-0x0;let _0x3e434c=_0x3dea[_0xe85345];return _0x3e434c;};import{Plugin as _0x16d516}from'ckeditor5/src/core';import _0xf725a9 from'./table';export default class Nt extends _0x16d516{static get[_0x3e43('0x7')](){return[_0xf725a9];}[_0x3e43('0x8')](){const _0x34005c=this[_0x3e43('0x3')];if(!_0x34005c[_0x3e43('0x2')][_0x3e43('0x0')](_0x3e43('0x5')))return;_0x34005c[_0x3e43('0x2')][_0x3e43('0x4')]('TrackChangesEditing')[_0x3e43('0x6')](_0x3e43('0x1'));}}
|