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

T/ckeditor5 engine/1555 #206

Merged
merged 4 commits into from
Nov 1, 2018
Merged

T/ckeditor5 engine/1555 #206

merged 4 commits into from
Nov 1, 2018

Conversation

jodator
Copy link
Contributor

@jodator jodator commented Oct 26, 2018

Suggested merge commit message (convention)

Other: Remove Position, Range, Selection imports from engine/model and engine/view.

BREKING CHANGE: The findLinkRange() method now requires model instance as third parameter.


Additional information

@@ -38,7 +38,7 @@ export default class UnlinkCommand extends Command {
model.change( writer => {
// Get ranges to unlink.
const rangesToUnlink = selection.isCollapsed ?
[ findLinkRange( selection.getFirstPosition(), selection.getAttribute( 'linkHref' ) ) ] : selection.getRanges();
[ findLinkRange( selection.getFirstPosition(), selection.getAttribute( 'linkHref' ), model ) ] : selection.getRanges();
Copy link

Choose a reason for hiding this comment

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

It should be simplified...

@coveralls
Copy link

coveralls commented Oct 29, 2018

Coverage Status

Coverage decreased (-8.4%) to 91.644% when pulling 84853b8 on t/ckeditor5-engine/1555 into 74dbe69 on master.

@Reinmar Reinmar merged commit 84853b8 into master Nov 1, 2018
@Reinmar Reinmar deleted the t/ckeditor5-engine/1555 branch November 1, 2018 15:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants