]> BookStack Code Mirror - bookstack/commit
WYSIWYG: Improved a range of text direction/alignment scenarios
authorDan Brown <redacted>
Tue, 20 Feb 2024 14:15:22 +0000 (14:15 +0000)
committerDan Brown <redacted>
Tue, 20 Feb 2024 14:15:22 +0000 (14:15 +0000)
commitc290d01adbbdeeb68c4b0d791fe919a02432d457
treeea3e22c8065b8bf96cf644fc8db62159aff97fc1
parent16327cf40cbc98d549a222d48c844eb8b3bc7bdc
WYSIWYG: Improved a range of text direction/alignment scenarios

- Removes 'span' from being a valid part of alignment formats so it's
  not used to align contents, since it's going to mostly be an inline
  format, wheras you'd really want alignment on the parent block.
- Adds direction cleaning to all direction change events, to remove
  direction styles and child direction controls which may complicate
  matters and cause direction changes not to show.
- Makes text direction controls work with table cell range selections,
  which TinyMCE does not consider by default, via manual handling.

For #4843
resources/js/wysiwyg/config.js
resources/js/wysiwyg/fixes.js