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

You can set but you cannot get the current display mode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 13.4.7, 14.0-rc-1, 13.10.3
    • 13.4.6, 13.10.2
    • Old Core
    • None
    • Unit
    • Trivial
    • N/A
    • N/A

    Description

      You can do $xcontext.setDisplayMode('edit') but there's no $xcontext.getDisplayMode(). This means you cannot restore the display mode in case you want to change it only for some fields.

      CKEDITOR-414 and XWIKI-19296 show a valid use case: a sheet where some fields are displayed in edit mode and some are read-only (view mode).

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: