Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

EZP-26135: Line breaks added in richtext editor when editing content twice #683

Merged
merged 1 commit into from
Oct 10, 2016

Conversation

dpobel
Copy link
Contributor

@dpobel dpobel commented Oct 5, 2016

JIRA: https://jira.ez.no/browse/EZP-26135

Description

This is yet again a problem about XML vs. HTML. Basically in PlatformUI, we use the xhtml5edit representation of the RichText fields. This xhtml5edit is an XML dialect closed to XHTML and then HTML, but some details confuse browser parsers mainly the auto-closed tag like <br/> and <div/> (for embeds). So this patch introduces a better transformation from xhtml5edit to HTML.

Tests

manual + unit tests

@dpobel dpobel force-pushed the ezp-26135_double_br branch from 3980a6f to 77d991d Compare October 7, 2016 08:48
@dpobel dpobel changed the base branch from master to 1.5 October 7, 2016 08:49
@dpobel dpobel force-pushed the ezp-26135_double_br branch from 77d991d to 061afc8 Compare October 7, 2016 08:51
@dpobel dpobel changed the title [WIP] EZP-26135: Line breaks added in richtext editor when editing content twice EZP-26135: Line breaks added in richtext editor when editing content twice Oct 7, 2016
@dpobel dpobel force-pushed the ezp-26135_double_br branch from 061afc8 to 4271bf3 Compare October 7, 2016 09:11
@dpobel
Copy link
Contributor Author

dpobel commented Oct 7, 2016

ping @yannickroger @StephaneDiot

@dpobel dpobel merged commit d3dbbe3 into 1.5 Oct 10, 2016
@dpobel dpobel deleted the ezp-26135_double_br branch October 10, 2016 12:25
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants