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

Unsupported page syntaxes can be selected when page has content

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 12.6.3, 12.9-rc-1
    • 11.10.10
    • Flamingo Skin
    • None
    • High
    • Easy

    Description

      As I understood vmassol in https://forum.xwiki.org/t/wysiwyg-support-and-different-wiki-syntaxes/7429/10?u=gohrner, at least in WYSIWYG mode it should not be possible to change a page to a syntax not supported by it.

      This does not work, though, as the following screenshot on a copy of the sandbox page indicates:

      According to https://rendering.xwiki.org/xwiki/bin/view/Main/#HSupportedSyntaxes, MediaWiki markup generation is not supported.

      Consequently, the result after saving the page after switching to MediaWiki syntax is not really convincing:

      This effect is caused by the WYSIWYG editor just still saving Xwiki 2.1 syntax, which is then interpreted as MediaWiki 1.6 by Xwiki...

      See below, original page on the right, the messed-up copy on the left:

      The user does not even get a warning that he's currently doing something which definitely cannot work...

      Attachments

        1. image-2020-09-03-20-20-13-373.png
          103 kB
          Gunter Ohrner
        2. image-2020-09-03-20-22-05-480.png
          89 kB
          Gunter Ohrner
        3. image-2020-09-03-20-24-17-613.png
          235 kB
          Gunter Ohrner
        4. syntaxConversionUnsupported.webm
          7.31 MB
          Marius Dumitru Florea

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              GOhrner Gunter Ohrner
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: