Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-7256

Strikethrough can't be used in richTextField

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 6.2.22
    • 6.3.0, 6.2.20
    • None
    • None

    Description

      Steps to reproduce:

      1. Enable source=true for a richTextField
      2. Open this richTextField
      3. You can see that Strikethrough is not available in the toolbar.
      4. Switch to the Source mode
      5. Insert <s>something</s>
      6. Switch back from Source mode

      Expected result

      I can see the text with strikethrough.

      Actual result

      The s tag is removed by CKEditor because Strikethrough is not allowed from the toolbar.

      Workaround

      1. By hotfixing the default magnolia config (Magnolia OnPrem) or providing a custom config (Cloud) from your light module:
      2. Replace "Strikethrough" with "Strike"
      3. Replace source: false, with source: true,
      4.       $type: richTextField
              configJsFile: http://localhost:8080/.resources/ckeditor/config-magnolia.js
              validators: {} # Only if you trust your editors!
         
      1. Clear your browser cache.
      2. Open the dialog with richTextField again.
      3. You might need to adjust other settings as now the config is loaded only from this file instead of from the richTextField properties.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                sang.ngo Sang Ngo Huu
                rkovarik Roman Kovařík
                Nucleus
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 1d 5.5h
                      1d 5.5h