ckeditor / ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
https://ckeditor.com/ckeditor-5
Other
9.4k stars 3.69k forks source link

Text part language: Add Support For Block Elements #12731

Open mmichaelis opened 1 year ago

mmichaelis commented 1 year ago

πŸ“ Provide a description of the improvement

Project Challenge

Suggested Improvement

Caveat

This approach still would struggle with examples, such as (in data/data view):

<ol><li lang="en">Lorem</li></ol>
<table lang="en"><tr><td>Lorem</td></tr></table>
<table><tr lang="en"><td>Lorem</td></tr></table>
<table><tr><td lang="en">Lorem</td></tr></table>

Workaround for not having the suggested improvement

πŸ“ƒ Other details


If you'd like to see this improvement implemented, add a πŸ‘ reaction to this post.

CKEditorBot commented 11 months ago

There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

CKEditorBot commented 9 months ago

We've closed your issue due to inactivity over the last year. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it).

bkosborne commented 4 months ago

+1 to this. An issue with the current language parts implementation is that it only works with spans. But if you specify an RTL language, it adds the "dir" attribute to the span, and browsers won't actually render the language in that direction because span is an inline element. The dir attribute seems to only have default alignment behavior for block elements like a p.