Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-5961

richtext: cut&pasting from Word might cause invaliation error due to not accepted "TextAlign" value

    XMLWordPrintable

Details

    • Yes

    Description

      When cut&pasting from word, you might get TextAlign values that doesn't match our schema.

       

      So markup like this:

      <?xml version="1.0" encoding="UTF-8"?>
      <section xmlns="http://ez.no/namespaces/ezpublish5/xhtml5/edit">
          <p style="text-align:start;">Some text</p>
      </section> 

      will be converted to richtext like this:

      <?xml version="1.0" encoding="UTF-8"?>
      <section xmlns="http://docbook.org/ns/docbook" xmlns:ezcustom="http://ez.no/xmlns/ezpublish/docbook/custom" xmlns:ezxhtml="http://ez.no/xmlns/ezpublish/docbook/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0">
          <para ezxhtml:textalign="start">Some text</para>
      </section> 

       

      But this won't validate because ezxhtml:textalign="start" is not an accepted value according to the schema

       

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              vidar.langseid@ibexa.co Vidar Langseid
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: