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

Switched LinkForm to the read-only mode when link and unlink commands are disabled. #136

Merged
merged 4 commits into from
Jul 13, 2017

Conversation

oskarwrobel
Copy link
Contributor

@oskarwrobel oskarwrobel commented Jul 6, 2017

Suggested merge commit message (convention)

Feature: Switched LinkFormView to the read-only mode when LinkCommand and UnlinkCommand are disabled. Closes ckeditor/ckeditor5#4800.


Requires ckeditor/ckeditor5-ui#267.

@oskarwrobel oskarwrobel requested a review from oleq July 6, 2017 12:32
src/link.js Outdated

formView.urlInputView.bind( 'value' ).to( editor.commands.get( 'link' ), 'value' );
// Form elements should be read-only when corresponding commands are disabled.
formView.urlInputView.inputView.bind( 'isReadOnly' ).to( linkCommand, 'isEnabled', value => !value );
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@oleq
Copy link
Member

oleq commented Jul 13, 2017

Looks great with ckeditor/ckeditor5-theme-lark#101.

image

@oleq oleq merged commit 50da835 into master Jul 13, 2017
@oleq oleq deleted the t/135 branch August 21, 2017 11:34
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.

LinkBalloonPanel should be displayed in read-only mode when Link/Unlink commands are disabled
2 participants