Details
-
Bug
-
Resolution: Fixed
-
High
-
2.5.8
-
None
Description
Content copied from external tools or editors (e.g. Word) and having anchors formatted like this <a name="some_link"> breaks validation in RichText.
Steps to reproduce:
1. Create a new article.
2. Open Word editor and type some text.
3. Add an anchor to this text (e.g. using hypertext context menu and by referring to the top of the page).
4. Copy this text.
5. Paste it to the RTE and hit Save/Publish.
Result:
You will be presented with an error:
Argument '$xmlDoc' is invalid: Transformation of XML content failed: Error in 0:0: Unhandled link type
Expected result:
Validation should not be crashed and content should be published.
Note:
This error comes from the fact that name attribute isn't currently supported withing our DocBook schema, ref: https://github.com/ezsystems/ezplatform-richtext/blob/14485d7bdea41e84c0dc477c3332b952da9426bd/src/lib/eZ/RichText/Resources/stylesheets/xhtml5/edit/docbook.xsl#L260.
Potentially we should map name attribute to id via Xhtml5-Edit to DocBook transformation.
Attachments
Issue Links
- testing discovered
-
EZP-31369 Adding more than one link to a list causes console error
- Closed
-
EZP-31370 Adding a link in a table cell causes console error
- Closed
-
EZP-31371 Copying a web page link w/o protocol in a Word paragraph leads to a 404 error
- Closed
-
EZP-31372 Links added to Formatted style are not saved
- Confirmed