Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Properly transform text in blocks with inline element. #219

Merged
merged 15 commits into from
Sep 12, 2019

Conversation

jodator
Copy link
Contributor

@jodator jodator commented Sep 11, 2019

Suggested merge commit message (convention)

Fix: Autoformat transformations in blocks containing inline elements. See ckeditor/ckeditor5#1955.


Additional information

In the previous check we didn't account that <softBreak> or other inline
elements were excluded from match. Also the matched text was trimmed
to the last inline node.
src/textwatcher.js Outdated Show resolved Hide resolved
src/utils/gettext.js Outdated Show resolved Hide resolved
src/utils/gettext.js Outdated Show resolved Hide resolved
@scofalik scofalik self-assigned this Sep 12, 2019
Copy link
Contributor

@scofalik scofalik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, please add a simple example to getLastTextLine() and update docs in textwatcher.js (you missed that).

src/utils/getlasttextline.js Outdated Show resolved Hide resolved
src/utils/getlasttextline.js Outdated Show resolved Hide resolved
src/utils/getlasttextline.js Outdated Show resolved Hide resolved
src/utils/getlasttextline.js Outdated Show resolved Hide resolved
src/utils/getlasttextline.js Outdated Show resolved Hide resolved
jodator and others added 8 commits September 12, 2019 15:49
Co-Authored-By: Szymon Cofalik <s.cofalik@cksource.com>
Co-Authored-By: Szymon Cofalik <s.cofalik@cksource.com>
Co-Authored-By: Szymon Cofalik <s.cofalik@cksource.com>
Co-Authored-By: Szymon Cofalik <s.cofalik@cksource.com>
Co-Authored-By: Szymon Cofalik <s.cofalik@cksource.com>
@scofalik scofalik merged commit 58abd23 into master Sep 12, 2019
@scofalik scofalik deleted the t/ckeditor5/1955 branch September 12, 2019 14:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants