IBX-6077: Custom classes and attributes on table in ReichText Online Editor are not saved #106
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
EDIT : I have made a new PR where the whole problem is solved in XSLT. I think that is a better alternative : #107
The editor used in 4.x saves tables inside a
<figure>
element. The editor would then saveclass
anddata-ezattribute
on the<figure>
element, instead of in the<table>
.We did apparently not fix our converters accordingly for 4.x.
I have solved it by making a php converter that simply copies the
class
anddata-ezattribute
attributes from<figure>
to<table>
element. It could have been done in XSLT too, but AFAIK we could not have reused templates likeezattribute
. Instead it would be cut&paste from that template but fetching attributes from ancestor instead of current node.I have not done anything with docbook->xhtml5.edit transformation. It seems like editor is backward compatible and also deals fine with having missing
<figure>
element and the attributes stored on<table>
element as before..TODO:
$ composer fix-cs
).