Skip to content

Content Model Fidelity improvement 12: parse and save format from TR element#1783

Merged
JiuqingSong merged 13 commits into
masterfrom
u/jisong/fidelity12
May 9, 2023
Merged

Content Model Fidelity improvement 12: parse and save format from TR element#1783
JiuqingSong merged 13 commits into
masterfrom
u/jisong/fidelity12

Conversation

@JiuqingSong

@JiuqingSong JiuqingSong commented May 6, 2023

Copy link
Copy Markdown
Collaborator

From previous change (#1781) table row can have its own format object. Now we parse format from TR and save the format into this object.

For now we only support saving one format of TR: backgroundColor.

Other fixes in this change:

  • For container with "display: inline-block", it is also possible to be treated as FormatContainer
  • When process Table, do not copy margin styles into table since it is table will not inherit these styles
  • Allow cache TR element, and use it when write back
  • Support backgroundColor in link
  • Support display in FormatContainer
  • When adjust selection for word, also clone link and code decorator if any
  • Change demo site to show TableRow

@JiuqingSong
JiuqingSong marked this pull request as ready for review May 8, 2023 15:41
@JiuqingSong
JiuqingSong merged commit a43ae8e into master May 9, 2023
@JiuqingSong
JiuqingSong deleted the u/jisong/fidelity12 branch May 9, 2023 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants