Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-23981

Maximize icon and “Exit Full Screen” button disappear after entering Preview and going Back to Edit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Blocker
    • 18.1.0-rc-1, 17.10.4, 17.4.10
    • 17.4.7, 17.10.2
    • None
    • Windows 11 Pro, Edge 144, using an instance of XWiki 17.10.2 on MariaDB 11.8, Jetty 12.0, Java 21
    • Unknown

    Description

      Steps to reproduce:

      1. Open any page in wiki mode
      2. Click on Maximize icon
      3. Click on on Preview
      4. Click on Back to Edit

      Expected results:

      Maximize icon and “Exit Full Screen” button are displayed on the screen.

      Actual results:

      Maximize icon and “Exit Full Screen” button disappear after Preview → Back to Edit
      Also in JS Console the following error is displayed:

      fullScreen.js:254 Uncaught TypeError: Cannot read properties of undefined (reading 'hide')
      at klass.makeFullScreen (fullScreen.js:254:9)
      at klass.initDom (fullScreen.js:69:16)
      at HTMLTextAreaElement.<anonymous> (fullScreen.js:406:1)
      at ce.each (jquery.min.js?r=1:2:3129)
      at e.<computed>.each (jquery.min.js?r=1:2:1594)
      at HTMLDocument.<anonymous> (fullScreen.js:406:1)
      at HTMLDocument.dispatch (jquery.min.js?r=1:2:40035)
      at v.handle (jquery.min.js?r=1:2:38006)
      at trigger (jquery.min.js?r=1:2:70124)
      at h.event.trigger (eventsBridge.js:35:18)
      fullScreen.js:254 Uncaught TypeError: Cannot read properties of undefined (reading 'hide')
      at klass.makeFullScreen (fullScreen.js:254:9)
      at klass.initDom (fullScreen.js:69:16)
      at HTMLDocument.a (fullScreen.js:406:1)
      at HTMLDocument.<anonymous> (prototype.js?r=1:7282:15)
      at fireEvent_DOM (prototype.js?r=1:7141:13)
      at fire (prototype.js?r=1:7130:17)
      at k (eventsBridge.js:61:26)
      at HTMLDocument.fire (prototype.js?r=1:456:23)
      at Object.initialize (xwiki.js:544:16)
      at HTMLDocument.<anonymous> (prototype.js?r=1:7282:15)

      Please note that I could not reproduce the issue on  XWiki 14.10.

      Attachments

        1. 14.10.png
          116 kB
          Andreea Tarata
        2. 17.10.2.png
          123 kB
          Andreea Tarata

        Activity

          People

            surli Simon Urli
            atarata Andreea Tarata
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: