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

Applying the 'code' style doesn't work as expected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 1.4.2, 1.6
    • None
    • Tested on Firefox 3 on both linux and windows
      Tested on IE6
    • code macro wysiwyg

    Description

      Selecting some text and trying to apply the "code" style from the text type drop down completely breaks the look of the editor:

      • The whole content suddenly looks gray-ish with stripes (the Toucan backgroud)
      • The selected text is mixed around the content
      • The final syntax is NOT placed inside the code macro, it is wrapped in {style:type=div} macros

        For example, entering 8 lines of text (numbered ascending), selecting lines 4-7, and applying 'code' style, resulted in:
        1 first line
        
        3 third line
        5 fifth line
        7 sevent line
        
         
        
        2 second line
        4 fourth line
        6 sixth line
        
        8 eight line
        


        which in wiki code is:
        
        

        1 first line

        3 third line {style:type=div}5 fifth line{style} {style:type=div}7 sevent line{style}


      2 second line

      {style:type=div}4 fourth line{style} {style:type=div}6 sixth line{style}

      <p>8 eight line
      </pre>

      {/noformat}

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            rnoel Rémy NOËL
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: