-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed: [tableselection] table contents can be removed in a readonly mode #1527
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR includes changes from #1525, which is already merged. Please rebase this PR to latest major
and remove redundant changes.
I rebased to the latest |
The ones removed by rebase ;) |
}, | ||
|
||
// (#1489) | ||
'test random keys are not removing readonly selection': function( editor ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test is failing in IE11.
plugins/tableselection/plugin.js
Outdated
@@ -1022,6 +1022,10 @@ | |||
firstCell, | |||
i; | |||
|
|||
if ( editor.readOnly ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add comment with reference to the issue.
@@ -972,7 +972,7 @@ | |||
i; | |||
|
|||
// Handle only left/right/del/bspace keys. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please adjust comment and add reference to the issue.
CHANGES.md
Outdated
@@ -63,6 +63,7 @@ Fixed Issues: | |||
* [#1516](https://github.com/ckeditor/ckeditor-dev/issues/1516): Fixed: Fake selection allows removing content in read-only mode using the <kbd>Backspace</kbd> and <kbd>Delete</kbd> keys. | |||
* [#1570](https://github.com/ckeditor/ckeditor-dev/issues/1570): Fixed: Fake selection allows cutting content in read-only mode using the <kbd>Ctrl</kbd>/<kbd>Cmd</kbd> + <kbd>X</kbd> keys. | |||
* [#1363](https://github.com/ckeditor/ckeditor-dev/issues/1363): Fixed: Paste notification is unclear and it might confuse users. | |||
* [#1489](https://github.com/ckeditor/ckeditor-dev/issues/1489): Fixed: [tableselection](https://docs.ckeditor.com/ckeditor4/latest/api/CKEDITOR_plugins_tableselection.html) table contents can be removed in readonly mode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change this reference to reference to plugin:
[Table Selection](https://ckeditor.com/cke4/addon/tableselection) plugin
I rebased this branch into |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rebase onto latest master
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
What is the purpose of this pull request?
Bug fix.
Does your PR contain necessary tests?
All patches which change the editor code must include tests. You can always read more
on PR testing,
how to set the testing environment and
how to create tests
in the official CKEditor documentation.
This PR contains
What changes did you make?
Disabled table selection delete on
keypress
andkeydown
events in a readonly mode.NOTE: This pull request depends on #1525 fix. It was created fromt/1525
branch.Based on #1692
Closes #1489