PageSourceSearch

https://www.strasbourg.eu/o/frontend-editor-ckeditor-web/__liferay…ditor$ckeditor5-fullscreen$dist$index.js.js

js strasbourg.eu collected 2026-09-24 08:37:43 UTC 27,714 bytes, 34 lines download raw bytes

1import{Accessibility as F,Command as v,CommandCollection as P,Context as A,ContextPlugin as R,EditingKeystrokeHandler as O,Editor as U,ElementApiMixin as H,MultiCommand as x,PendingActions as W,Plugin as u,_DEFAULT_ACCESSIBILITY_GROUP_ID as N,_getEditorUsageData as q,attachToForm as j,secureSourceElement as z}from"../../../frontend-editor-ckeditor-web/__liferay__/exports/@ckeditor$ckeditor5-core$dist$index.js.js";import{CKEditorError as Y,Collection as X,Config as Q,DOCUMENTATION_URL as J,DomEmitterMixin as Z,ElementReplacer as $,EmitterMixin as ee,EventInfo as ie,FocusTracker as te,KeystrokeHandler as oe,Locale as ne,ObservableMixin as se,Rect as a,ResizeObserver as re,_clearTranslations as le,_getEmitterId as ae,_getEmitterListenedTo as ce,_getUserAgent as de,_isAndroid as ue,_isBlink as he,_isGecko as ge,_isMac as pe,_isMediaForcedColors as me,_isMotionReduced as fe,_isRegExpUnicodePropertySupported as _e,_isSafari as we,_isWindows as Ie,_isiOS as be,_setEmitterId as ve,_translate as ke,_unifyTranslations as Ce,abortableDebounce as ye,add as Ve,areConnectedThroughProperties as Ee,collectStylesheets as Te,compareArrays as De,count as Le,crc32 as Se,createElement as l,delay as Me,diff as Be,diffToChanges as Fe,env as _,exponentialDelay as Pe,fastDiff as Ae,findClosestScrollableAncestor as Re,first as Oe,formatHtml as Ue,getAncestors as He,getBorderWidths as xe,getCode as We,getCommonAncestor as Ne,getDataFromElement as qe,getEnvKeystrokeText as je,getLanguageDirection as ze,getLocalizedArrowKeyCodeDirection as Ge,getOptimalPosition as Ke,getPositionedAncestor as Ye,getRangeFromMouseEvent as Xe,getVisualViewportOffset as Qe,global as h,indexOf as Je,insertAt as Ze,insertToPriorityArray as $e,isArrowKeyCode as ei,isCombiningMark as ii,isComment as ti,isForwardArrowKeyCode as oi,isHighSurrogateHalf as ni,isInsideCombinedSymbol as si,isInsideEmojiSequence as ri,isInsideSurrogatePair as li,isIterable as ai,isLowSurrogateHalf as ci,isNode as di,isRange as ui,isText as hi,isValidAttributeName as gi,isViewWithFocusTracker as pi,isVisible as mi,isWindow as fi,keyCodes as _i,logError as wi,logWarning as Ii,mapsEqual as bi,nth as vi,objectToMap as ki,parseBase64EncodedObject as Ci,parseKeystroke as yi,priorities as Vi,releaseDate as Ei,remove as Ti,retry as Di,scrollAncestorsToShowTarget as Li,scrollViewportToShowTarget as Si,setDataInElement as Mi,spliceArray as Bi,spy as Fi,toArray as Pi,toMap as Ai,toUnit as Ri,uid as Oi,version as Ui,wait as Hi}from"../../../frontend-editor-ckeditor-web/__liferay__/exports/@ckeditor$ckeditor5-utils$dist$index.js.js";import{AccessibilityHelp as Ni,AccessibilityHelpContentView as qi,AriaLiveAnnouncer as ji,AriaLiveAnnouncerPoliteness as zi,AriaLiveAnnouncerRegionView as Gi,AriaLiveAnnouncerView as Ki,AutocompleteView as Yi,Badge as Xi,BalloonPanelView as Qi,BalloonToolbar as Ji,BlockButtonView as Zi,BlockToolbar as $i,BodyCollection as k,BoxedEditorUIView as et,ButtonLabelView as it,ButtonLabelWithHighlightView as tt,ButtonView as C,CollapsibleView as ot,ColorGridView as nt,ColorGridsFragmentView as st,ColorPickerFragmentView as rt,ColorPickerInputRowView as lt,ColorPickerView as at,ColorSelectorView as ct,ColorTileView as dt,ComponentFactory as ut,ContextualBalloon as ht,CssTransitionDisablerMixin as gt,DefaultMenuBarItems as pt,Dialog as mt,DialogActionsView as ft,DialogContentView as _t,DialogView as wt,DialogViewPosition as w,DocumentColorCollection as It,DraggableViewMixin as bt,DropdownButtonView as vt,DropdownMenuButtonView as kt,DropdownMenuListItemButtonView as Ct,DropdownMenuListItemView as yt,DropdownMenuListView as Vt,DropdownMenuNestedMenuPanelView as Et,DropdownMenuNestedMenuView as Tt,DropdownMenuPanelPositioningFunctions as Dt,DropdownMenuRootListView as Lt,DropdownPanelView as St,DropdownView as Mt,EditableUIView as Bt,EditorUI as Ft,EditorUIView as Pt,EvaluationBadge as At,FileDialogButtonView as Rt,FileDialogListItemButtonView as Ot,FileDialogViewMixin as Ut,FocusCycler as Ht,FormHeaderView as xt,FormRowView as Wt,HighlightedTextView as Nt,IconView as qt,IframeView as jt,InlineEditableUIView as zt,InputBase as Gt,InputNumberView as Kt,InputTextView as Yt,InputView as Xt,ItemsView as Qt,LabelView as Jt,LabelWithHighlightView as Zt,LabeledFieldView as $t,LabeledInputVie
1w as eo,ListItemButtonView as io,ListItemGroupView as to,ListItemView as oo,ListSeparatorView as no,ListView as so,MenuBarMenuButtonView as ro,MenuBarMenuListItemButtonView as I,MenuBarMenuListItemFileDialogButtonView as lo,MenuBarMenuListItemView as ao,MenuBarMenuListView as co,MenuBarMenuPanelView as uo,MenuBarMenuView as ho,MenuBarView as y,NESTED_TOOLBAR_ICONS as go,Notification as po,PoweredBy as mo,SearchInfoView as fo,SearchResultsView as _o,SearchTextView as wo,SliderView as Io,SpinnerView as bo,SplitButtonView as vo,StickyPanelView as ko,SwitchButtonView as Co,Template as yo,TextareaView as Vo,ToolbarLineBreakView as Eo,ToolbarSeparatorView as To,ToolbarView as Do,TooltipManager as Lo,UIModel as So,View as Mo,ViewCollection as Bo,ViewModel as Fo,_CheckIconHolderView as Po,_CollapsibleView as Ao,_ContextualBalloonRotatorView as Ro,_DropdownMenuBehaviors as Oo,_DropdownRootMenuBehaviors as Uo,_MenuBarBehaviors as Ho,_MenuBarMenuBehaviors as xo,_MenuBarMenuViewPanelPositioningFunctions as Wo,_SearchInfoView as No,_SearchTextQueryView as qo,_TemplateBinding as jo,_TemplateIfBinding as zo,_TemplateToBinding as Go,_convertColor as Ko,_convertColorToHex as Yo,_preventUiViewDefault as Xo,_processMenuBarConfig as Qo,_registerCustomElement as Jo,_tryNormalizeHexColor as Zo,addKeyboardHandlingForGrid as $o,addListToDropdown as en,addMenuToDropdown as tn,addToolbarToDropdown as on,clickOutsideHandler as nn,createDropdown as sn,createLabeledDropdown as rn,createLabeledInputNumber as ln,createLabeledInputText as an,createLabeledTextarea as cn,filterGroupAndItemNames as dn,focusChildOnDropdownOpen as un,getLocalizedColorOptions as hn,isFocusable as gn,isViewWithFocusCycler as pn,normalizeColorOptions as mn,normalizeMenuBarConfig as fn,normalizeSingleColorDefinition as _n,normalizeToolbarConfig as wn,submitHandler as In}from"../../../frontend-editor-ckeditor-web/__liferay__/exports/@ckeditor$ckeditor5-ui$dist$index.js.js";import{IconAccessibility as kn,IconAddComment as Cn,IconAlignBottom as yn,IconAlignCenter as Vn,IconAlignJustify as En,IconAlignLeft as Tn,IconAlignMiddle as Dn,IconAlignRight as Ln,IconAlignTop as Sn,IconArrowDown as Mn,IconArrowUp as Bn,IconBold as Fn,IconBookmark as Pn,IconBookmarkInline as An,IconBookmarkMedium as Rn,IconBookmarkSmall as On,IconBrowseFiles as Un,IconBulletedList as Hn,IconCancel as xn,IconCaption as Wn,IconCaseChange as Nn,IconCheck as qn,IconChevronDown as jn,IconChevronUp as zn,IconCkboxImageEdit as Gn,IconCode as Kn,IconCodeBlock as Yn,IconCog as Xn,IconColorPalette as Qn,IconColorTileCheck as Jn,IconCommentsArchive as Zn,IconContentLock as $n,IconContentUnlock as es,IconCopy as is,IconDragHandle as ts,IconDragIndicator as os,IconDropbox as ns,IconDropdownArrow as ss,IconEditComment as rs,IconEmoji as ls,IconEraser as as,IconError as cs,IconExportPdf as ds,IconExportWord as us,IconFacebook as hs,IconFindReplace as gs,IconFontBackground as ps,IconFontColor as ms,IconFontFamily as fs,IconFontSize as _s,IconFullscreenEnter as V,IconFullscreenLeave as E,IconGoogleDrive as ws,IconGooglePhotos as Is,IconHeading1 as bs,IconHeading2 as vs,IconHeading3 as ks,IconHeading4 as Cs,IconHeading5 as ys,IconHeading6 as Vs,IconHistory as Es,IconHorizontalLine as Ts,IconHtml as Ds,IconImage as Ls,IconImageAssetManager as Ss,IconImageUpload as Ms,IconImageUrl as Bs,IconImportExport as Fs,IconImportWord as Ps,IconIndent as As,IconInsertMergeField as Rs,IconItalic as Os,IconLegalStyleList as Us,IconLineHeight as Hs,IconLink as xs,IconListStyleCircle as Ws,IconListStyleDecimal as Ns,IconListStyleDecimalLeadingZero as qs,IconListStyleDisc as js,IconListStyleLowerLatin as zs,IconListStyleLowerRoman as Gs,IconListStyleSquare as Ks,IconListStyleUpperLatin as Ys,IconListStyleUpperRoman as Xs,IconLocal as Qs,IconLoupe as Js,IconLowVision as Zs,IconMagicWand as $s,IconMarker as er,IconMedia as ir,IconMediaPlaceholder as tr,IconMultiLevelList as or,IconNextArrow as nr,IconNotification as sr,IconNumberedList as rr,IconObjectCenter as lr,IconObjectFullWidth as ar,IconObjectInline as cr,IconObjectInlineLeft as dr,IconObjectInlineRight as ur,IconObjectLeft as hr,IconObjectRight as gr,IconObjectSizeCustom as pr,IconObjectSizeFull as mr,IconObjectSizeLarge as fr,IconObjectSizeMedium as _r,IconObjectSizeSmall as wr,IconOneDrive as Ir,IconOutdent as br,IconPageBreak as vr,IconPaginationExample as kr,IconPaintRoller as Cr,IconPaintRollerCursorDefault as yr,IconPaintRollerCursorText as Vr,IconParagraph as Er,IconPen as Tr,IconPencil as Dr,IconPilcrow as Lr,IconPlay as Sr,IconPlus as Mr,IconPreviewMergeFields as Br,IconPreviousArrow as Fr,IconPrint as Pr,IconProjectLogo as Ar,IconQuote as Rr,IconRedo as Or,IconRemove as Ur,IconRemoveComment as Hr,IconRemoveFormat as xr,IconReturnArrow as Wr,IconRevisionHistory as Nr,IconRobotPencil as qr,IconSelectAll as jr,IconSettings as zr,IconShowBlocks as Gr,IconSource as Kr,IconSpecialCharacters as Yr,IconStrikethrough as Xr,IconSubmit as Qr,IconSubscript as Jr,IconSuperscript as Zr,IconTable as $r,IconTableCellProperties as el,IconTableColumn as il,IconTableLayout as tl,IconTableMergeCell as ol,IconTableOfContents as nl,IconTableProperties as sl,IconTableRow as rl,IconTemplate as ll,IconTemplateGeneric as al,IconText as cl,IconTextAlternative as dl,IconThreeVerticalDots as ul,IconTodoList as hl,IconTrackChanges as gl,IconTrackChangesAccept as pl,IconTrackChangesDiscard as ml,IconUnderline as fl,IconUndo as _l,IconUnlink as wl,IconUploadcareImageEdit as Il,IconUploadcareImageUpload as bl,IconUploadcareLink as vl,IconUser as kl,IconWarning as Cl}from"../../../frontend-editor-ckeditor-web/__liferay__/exports/@ckeditor$ckeditor5-icons$dist$index.js.js";var D=28,c=class{_placeholderMap;_wrapper=null;_document;_annotationsUIsData=null;_paginationBodyCollection=null;_sourceEditingCallback=(e,i,t)=>{this.getWrapper().querySelector(".ck-fullscreen__document-outline-header").style.display=t?"none":""};_hiddenElements=new Map;_savedAncestorsScrollPositions=new Map;_showRevisionViewerCallback=null;_closeRevisionViewerCallback=null;constructor(e){this._placeholderMap=new Map,e.plugins.has("RevisionHistory")&&(this._showRevisionViewerCallback=e.config.get("revisionHistory").showRevisionViewerCallback,this._closeRevisionViewerCallback=e.config.get("revisionHistory").closeRevisionViewerCallback),this._editor=e,this._document=this._editor.sourceElement?this._editor.sourceElement.ownerDocument:h.document,this._editor.config.define("fullscreen.container",this._document.body),e.on("destroy",()=>{this._wrapper&&this.destroy()})}moveToFullscreen(e,i){let t=l(this._document,"div");t.setAttribute("data-ck-fullscreen-placeholder",i),e.replaceWith(t),this.getWrapper().querySelector(`[data-ck-fullscreen="${i}"]`).append(e),this._placeholderMap.set(i,{placeholderElement:t,movedElement:e})}restoreMovedElementLocation(e){if(!this._placeholderMap.has(e))return;let{placeholderElement:i,movedElement:t}=this._placeholderMap.get(e);i.replaceWith(t),i.remove(),this._placeholderMap.delete(e),this._placeholderMap.size===0&&this._destroyContainer()}getWrapper(){return this._wrapper||(this._wrapper=l(this._document,"div",{class:"ck ck-fullscreen__main-wrapper"}),this._wrapper.innerHTML=`
2				<div class="ck ck-fullscreen__top-wrapper ck-reset_all">
3					<div class="ck ck-fullscreen__menu-bar" data-ck-fullscreen="menu-bar"></div>
4					<div class="ck ck-fullscreen__toolbar" data-ck-fullscreen="toolbar"></div>
5				</div>
6				<div class="ck ck-fullscreen__editable-wrapper">
7					<div class="ck ck-fullscreen__sidebar ck-fullscreen__left-sidebar" data-ck-fullscreen="left-sidebar"></div>
8					<div class="ck ck-fullscreen__editable" data-ck-fullscreen="editable">
9						<div class="ck ck-fullscreen__pagination-view" data-ck-fullscreen="pagination-view"></div>
10					</div>
11					<div class="ck ck-fullscreen__sidebar ck-fullscreen__right-sidebar" data-ck-fullscreen="right-sidebar"></div>
12				</div>
13				<div class="ck ck-fullscreen__bottom-wrapper">
14					<div class="ck ck-fullscreen__body-wrapper" data-ck-fullscreen="body-wrapper"></div>
15				</div>
16			`,this._editor.config.get("fullscreen.container").appendChild(this._wrapper)),this._wrapper}enable(){this._saveAncestorsScrollPositions(this._editor.ui.getEditableElement()),this.defaultOnEnter(),this._editor.config.get("fullscreen.container")===this._document.body&&(this._document.body.classList.add("ck-fullscreen"),this._document.body.parentElement.classList.add("ck-fullscreen")),this._editor.plugins.has("Dialog")&&this._registerFullscreenDialogPositionAdjustments();this._editor.plugins.has("PresenceListUI")&&this._generatePresenceListContainer();this._editor.plugins.has("DocumentOutlineUI")&&this._generateDocumentOutlineContainer();if(this._editor.plugins.has("Pagination")&&this._editor.plugins.get("Pagination").isEnabled){let e=this._editor.plugins.get("PaginationRenderer");e.setupScrollableAncestor(),this._paginationBodyCollection=new k(this._editor.locale),this._paginationBodyCollection.attachToDom(),e.linesRepository.setViewCollection(this._paginationBodyCollection),this._editor.once("destroy",()=>{this._paginationBodyCollection.detachFromDom()}),this.moveToFullscreen(this._paginationBodyCollection.bodyCollectionContainer,"body-wrapper")}if(this._editor.plugins.has("AnnotationsUIs")&&this._overrideAnnotationsUIs(),this._editor.plugins.has("RevisionHistory")){this._editor.plugins.get("RevisionHistory").isRevisionViewerOpen&&this._editor.config.get("revisionHistory.closeRevisionViewerCallback")(),this._overrideRevisionHistoryCallbacks()}this._editor.plugins.has("SourceEditing")&&this._editor.plugins.has("DocumentOutlineUI")&&this._editor.plugins.get("SourceEditing").on("change:isSourceEditingMode",this._sourceEditingCallback);for(let e of this._editor.config.get("fullscreen.container").children)e!==this._wrapper&&!e.classList.contains("ck-body-wrapper")&&!e.classList.contains("ckbox-wrapper")&&e.style.display!=="none"&&(this._hiddenElements.set(e,e.style.display),e.style.display="none");this._editor.config.get("fullscreen.onEnterCallback")&&this._editor.config.get("fullscreen.onEnterCallback")(this.getWrapper())}disable(){this._editor.config.get("fullscreen.onLeaveCallback")&&this._editor.config.get("fullscreen.onLeaveCallback")(this.getWrapper()),this._document.body.classList.remove("ck-fullscreen"),this._document.body.parentElement.classList.remove("ck-fullscreen");this._editor.plugins.has("DocumentOutlineUI")&&this._restoreDocumentOutlineDefaultContainer();this._annotationsUIsData&&this._restoreAnnotationsUIs(),this._editor.plugins.has("RevisionHistory")&&this._restoreRevisionHistoryCallbacks(),this._editor.plugins.has("SourceEditing")&&this._editor.plugins.has("DocumentOutlineUI")&&this._editor.plugins.get("SourceEditing").off("change:isSourceEditingMode",this._sourceEditingCallback);for(let e of this._placeholderMap.keys())this.restoreMovedElementLocation(e);this._destroyContainer(),this._editor.ui.view.toolbar&&this._editor.ui.view.toolbar.switchBehavior(this._editor.config.get("toolbar.shouldNotGroupWhenFull")===!0?"static":"dynamic");for(let[e,i]of this._savedAncestorsScrollPositions)e.scrollTo({left:i.scrollLeft,top:i.scrollTop,behavior:"instant"});this._savedAncestorsScrollPositions.clear();if(this._editor.plugins.has("Pagination")&&this._editor.plugins.get("Pagination").isEnabled){let e=this._editor.plugins.get("PaginationRenderer");e.setupScrollableAncestor(),e.linesRepository.setViewCollection(this._editor.ui.view.body),this._paginationBodyCollection.detachFromDom(),this._paginationBodyCollection?.destroy()}this._editor.plugins.has("Dialog")&&this._unregisterFullscreenDialogPositionAdjustments()}destroy(){for(let{placeholderElement:e,movedElement:i}of this._placeholderMap.values())e.remove(),i.remove();this._destroyContainer(),this._document.body.classList.remove("ck-fullscreen"),this._document.body.parentElement.classList.remove("ck-fullscreen")}defaultOnEnter(){return this.getWrapper()}_destroyContainer(){if(this._wrapper){this._wrapper.remove(),this._wrapper=null;for(let[e,i]of this._hiddenElements)e.style.display=i;this._hiddenElements.clear()}}_generatePresenceListContainer(){let e=this._editor.t,i=l(document,"div",{class:"ck ck-fullscreen__left-sidebar-item"});i.innerHTML=`
17			<div class="ck ck-fullscreen__left-sidebar-header"></div>
18			<div class="ck ck-fullscreen__presence-list" data-ck-fullscreen="presence-list"></div>
19		`,i.firstElementChild.innerText=e("Connected users"),document.querySelector('[data-ck-fullscreen="left-sidebar-sticky"]')||document.querySelector('[data-ck-fullscreen="left-sidebar"]').appendChild(l(document,"div",{class:"ck ck-fullscreen__left-sidebar-sticky","data-ck-fullscreen":"left-sidebar-sticky"})),document.querySelector('[data-ck-fullscreen="left-sidebar-sticky"]').appendChild(i);let t=this._editor.plugins.get("PresenceListUI");this.moveToFullscreen(t.view.element,"presence-list")}_generateDocumentOutlineContainer(){let e=this._editor.t,i=l(document,"div",{class:"ck-fullscreen__left-sidebar-item ck-fullscreen__left-sidebar-item--no-margin"});i.innerHTML=`
20			<div class="ck ck-fullscreen__left-sidebar-header ck-fullscreen__document-outline-header"></div>
21		`,i.firstElementChild.innerText=e("Document outline");let t=l(document,"div",{class:"ck ck-fullscreen__left-sidebar-item ck-fullscreen__document-outline-wrapper"});t.innerHTML=`
22			<div class="ck ck-fullscreen__document-outline" data-ck-fullscreen="document-outline"></div>
23		`,document.querySelector('[data-ck-fullscreen="left-sidebar-sticky"]')||document.querySelector('[data-ck-fullscreen="left-sidebar"]').appendChild(l(document,"div",{class:"ck ck-fullscreen__left-sidebar-sticky","data-ck-fullscreen":"left-sidebar-sticky"})),document.querySelector('[data-ck-fullscreen="left-sidebar"]').appendChild(t),document.querySelector('[data-ck-fullscreen="left-sidebar-sticky"]').appendChild(i);let n=this._editor.plugins.get("DocumentOutlineUI");n.view.documentOutlineContainer=document.querySelector('[data-ck-fullscreen="left-sidebar"]'),this.moveToFullscreen(n.view.element,"document-outline")}_restoreDocumentOutlineDefaultContainer(){let e=this._editor.plugins.get("DocumentOutlineUI");e.view.documentOutlineContainer=e.view.element}_overrideAnnotationsUIs(){let e=this._editor.plugins.get("AnnotationsUIs");this._annotationsUIsData=new Map(e.uisData);let i=new Map;for(let[o,r]of[...this._annotationsUIsData])r.filter!==e.defaultFilter&&i.set(o,r.filter);e.deactivateAll();let t=this._editor.plugins.get("Sidebar");t.container?(n(),this.moveToFullscreen(t.container.firstElementChild,"right-sidebar"),t.setContainer(this.getWrapper().querySelector('[data-ck-fullscreen="right-sidebar"]'))):(t.setContainer(this.getWrapper().querySelector('[data-ck-fullscreen="right-sidebar"]')),n(),this.moveToFullscreen(t.container.firstElementChild,"right-sidebar"));function n(){i.has("wideSidebar")?e.activate("wideSidebar",i.get("wideSidebar")):i.size?e.activate("wideSidebar",o=>[...i.values()].some(r=>r(o))):e.switchTo("wideSidebar")}}_restoreAnnotationsUIs(){let e=this._editor.plugins.get("Sidebar"),i=e.context.config.get("sidebar.container");i&&e.setContainer(i);let t=this._editor.plugins.get("AnnotationsUIs");t.deactivateAll();for(let[n,o]of[...this._annotationsUIsData])t.activate(n,o.filter);this._annotationsUIsData=null}_overrideRevisionHistoryCallbacks(){this._editor.config.set("revisionHistory.showRevisionViewerCallback",async()=>{let e=await this._showRevisionViewerCallback();return this._editor.plugins.has("DocumentOutlineUI")&&(this.getWrapper().querySelector(".ck-fullscreen__document-outline-header").style.display="none"),this.restoreMovedElementLocation("editable"),this.restoreMovedElementLocation("toolbar"),this.restoreMovedElementLocation("right-sidebar"),this._annotationsUIsData&&this._restoreAnnotationsUIs(),this._editor.ui.view.menuBarView&&this._editor.ui.view.menuBarView.disable(),this.moveToFullscreen(e.ui.getEditableElement(),"editable"),this.moveToFullscreen(e.ui.view.toolbar.element,"toolbar"),this.moveToFullscreen(this._editor.config.get("revisionHistory.viewer
23SidebarContainer"),"right-sidebar"),e});this._editor.config.set("revisionHistory.closeRevisionViewerCallback",async()=>{this.restoreMovedElementLocation("toolbar"),this.restoreMovedElementLocation("editable"),this.restoreMovedElementLocation("right-sidebar"),this._editor.plugins.has("DocumentOutlineUI")&&(this.getWrapper().querySelector(".ck-fullscreen__document-outline-header").style.display=""),this.moveToFullscreen(this._editor.ui.getEditableElement(),"editable"),this.moveToFullscreen(this._editor.ui.view.toolbar.element,"toolbar"),await this._closeRevisionViewerCallback(),this._editor.plugins.has("AnnotationsUIs")&&this._overrideAnnotationsUIs(),this._editor.ui.view.menuBarView&&this._editor.ui.view.menuBarView.enable()})}_restoreRevisionHistoryCallbacks(){this._editor.config.set("revisionHistory.showRevisionViewerCallback",async()=>this._showRevisionViewerCallback());this._editor.config.set("revisionHistory.closeRevisionViewerCallback",async()=>this._closeRevisionViewerCallback())}_registerFullscreenDialogPositionAdjustments(){let e=this._editor.plugins.get("Dialog");this._setNewDialogPosition(),e.on("change:isOpen",this.updateDialogPositionCallback,{priority:"highest"})}_unregisterFullscreenDialogPositionAdjustments(){let e=this._editor.plugins.get("Dialog"),i=e.view;i&&i.position===null&&(i.position=w.EDITOR_TOP_SIDE),i&&i.updatePosition(),e.off("change:isOpen",this.updateDialogPositionCallback)}updateDialogPositionCallback=this._updateDialogPosition.bind(this);_updateDialogPosition(e,i,t){t&&this._setNewDialogPosition()}_setNewDialogPosition(){let i=this._editor.plugins.get("Dialog").view;if(!i||i.position!==w.EDITOR_TOP_SIDE)return;let t=new a(this._wrapper).getVisible(),n=new a(document.querySelector(".ck-fullscreen__editable")).getVisible(),o=new a(i.element.querySelector(".ck-dialog")).getVisible(),r=new a(document.querySelector(".ck-fullscreen__editable-wrapper")).excludeScrollbarsAndBorders().getVisible().width-new a(document.querySelector(".ck-fullscreen__editable-wrapper")).getVisible().width;t&&n&&o&&(i.position=null,i.moveTo(t.left+t.width-o.width-D+r,n.top))}_saveAncestorsScrollPositions(e){let i=e.parentElement;if(i)for(;i;){let t=i.style.overflowY||h.window.getComputedStyle(i).overflowY,n=i.style.overflowX||h.window.getComputedStyle(i).overflowX;t==="auto"||t==="scroll"||n==="auto"||n==="scroll"?this._savedAncestorsScrollPositions.set(i,{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}):i.tagName==="HTML"&&this._savedAncestorsScrollPositions.set(i,{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}),i=i.parentElement}}},g=class extends c{_editor;constructor(e){super(e),this._editor=e}defaultOnEnter(){let e=this._editor.ui,i=e.view;return this._editor.plugins.has("Pagination")&&this._editor.plugins.get("Pagination").isEnabled&&this.moveToFullscreen(e.getEditableElement().parentElement.querySelector(".ck-pagination-view"),"pagination-view"),this.moveToFullscreen(e.getEditableElement(),"editable"),this.moveToFullscreen(i.toolbar.element,"toolbar"),i.toolbar.switchBehavior(this._editor.config.get("fullscreen.toolbar.shouldNotGroupWhenFull")===!0?"static":"dynamic"),this.getWrapper().setAttribute("dir",i.element.getAttribute("dir")),this.getWrapper().classList.add("ck-rounded-corners"),this._editor.config.get("fullscreen.menuBar.isVisible")&&(i.menuBarView||(i.menuBarView=new y(this._editor.locale),i.menuBarView.render(),e.initMenuBar(i.menuBarView)),this.moveToFullscreen(i.menuBarView.element,"menu-bar")),this.getWrapper()}},p=class extends c{_editor;constructor(e){super(e),this._editor=e}defaultOnEnter(){return this._editor.plugins.has("Pagination")&&this._editor.plugins.get("Pagination").isEnabled&&this.moveToFullscreen(this._editor.ui.getEditableElement().parentElement.querySelector(".ck-pagination-view"),"pagination-view"),this.moveToFullscreen(this._editor.ui.getEditableElement(),"editable"),this.moveToFullscreen(this._editor.ui.view.toolbar.element,"toolbar"),this._editor.ui.view.toolbar.switchBehavior(this._editor.config.get("fullscreen.toolbar.shouldNotGroupWhenFull")===!0?"static":"dynamic"),this._editor.config.get("fullscreen.menuBar.isVisible")&&this.moveToFullscreen(this._editor.ui.view.menuBarView.element,"menu-bar"),this.getWrapper()}},m=class extends v{fullscreenHandler;constructor(e){super(e),this.affectsData=!1,this.isEnabled=!0,this.value=!1,L(e)?this.fullscreenHandler=new g(e):S(e)?this.fullscreenHandler=new p(e):this.fullscreenHandler=new c(e)}execute(){this.value?this._disableFullscreenMode():this._enableFullscreenMode()}_enableFullscreenMode(){this.fullscreenHandler.enable(),this.value=!0}_disableFullscreenMode(){this.fullscreenHandler.disable(),this.value=!1}};function L(s){return s.constructor.editorName==="ClassicEditor"}function S(s){return s.constructor.editorName==="DecoupledEditor"}var d=class extends u{static get pluginName(){return"FullscreenEditing"}static get isOfficialPlugin(){return!0}constructor(e){super(e),e.config.define("fullscreen.menuBar.isVisible",!0),e.config.define("fullscreen.toolbar.shouldNotGroupWhenFull",e.config.get("toolbar.shouldNotGroupWhenFull")===!0)}init(){this.editor.commands.add("toggleFullscreen",new m(this.editor));let e=this.editor.locale.t;this.editor.keystrokes.set("Ctrl+Shift+F",(i,t)=>{this.editor.execute("toggleFullscreen"),_.isBlink||(this.editor.editing.view.document.isFocused=!1,this.editor.ui.view.toolbar.focusTracker.focusedElement=null),this.editor.editing.view.scrollToTheSelection(),this.editor.editing.view.focus(),t()}),this.editor.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Toggle fullscreen mode"),keystroke:"CTRL+SHIFT+F"}],categoryId:"navigation"})}},T="toggleFullscreen",f=class extends u{static get requires(){return[d]}static get pluginName(){return"FullscreenUI"}static get isOfficialPlugin(){return!0}init(){let e=this.editor;e.ui.componentFactory.add("fullscreen",()=>this._createButton(C)),e.ui.componentFactory.add("menuBar:fullscreen",()=>this._createButton(I))}_createButton(e){let i=this.editor,t=i.t,n=i.commands.get(T),o=new e(i.locale);return o.set({isToggleable:!0}),o.bind("isEnabled").to(n,"isEnabled"),o.bind("isOn").to(n,"value"),o instanceof I?o.set({role:"menuitemcheckbox",label:t("Fullscreen mode")}):(o.bind("icon").to(n,"value",r=>r?E:V),o.bind("label").to(n,"value",r=>t(r?"Leave fullscreen mode":"Enter fullscreen mode")),o.set({tooltip:!0})),this.listenTo(o,"execute",()=>{i.execute(T),_.isBlink||(this.editor.ui.view.toolbar.focusTracker.focusedElement=null),i.editing.view.scrollToTheSelection(),i.editing.view.focus()}),o}},b=class extends u{static get requires(){return[d,f]}static get pluginName(){return"Fullscreen"}static get isOfficialPlugin(){return!0}};export{b as Fullscreen,c as FullscreenAbstractEditorHandler,g as FullscreenClassicEditorHandler,m as FullscreenCommand,p as FullscreenDecoupledEditorHandler,d as FullscreenEditing,f as FullscreenUI};
24/*! Bundled license information:
25
26@ckeditor/ckeditor5-fullscreen/dist/index.js:
27  (**
28   * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
29   * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
30   *)
31  (* istanbul ignore if -- @preserve *)
32  (* istanbul ignore next -- @preserve *)
33*/
34//# sourceMappingURL=@ckeditor$ckeditor5-fullscreen$dist$index.js.(YNV6DKWW).js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.