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

WYSIWYG does not keep newline after comment and before {style} macros

    XMLWordPrintable

    Details

    • keywords:
      style macro, wysiwyg, editor
    • Similar issues:

      Description

      When processing an existing page with a div after a velocity comment, the WYSIWYG editor will place the

      {style} macro on the same line as the comment, so the {style}

      section will be ignored:

      A page such as:

      ##comment line 1
      <div style="background-color: red">
      red section
      ##comment line 2
      </div>

      ##comment line 3
      <div style="background-color: blue">
      blue section
      ##comment line 4
      </div>

      Will be convered to:

      ##comment line 1

      {style:type=div|background-color=red}
      red section
      ##comment line 2 {style}

      ##comment line 3

      {style:type=div|background-color=blue}
      blue section
      ##comment line 4 {style}

        Attachments

          Activity

            People

            Assignee:
            phunghainam Phung Hai Nam
            Reporter:
            kliether Tom Kliethermes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: