-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1589 from ckeditor/t/1570
Disabled cutting widget in a readonly mode using cmd/ctrl + x keys
- Loading branch information
Showing
5 changed files
with
72 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<textarea id="editor1" cols="10" rows="10"><p>[[placeholder]] foo bar</p></textarea> | ||
|
||
<script> | ||
CKEDITOR.replace( 'editor1', { readOnly: true } ); | ||
|
||
// Test has been ignored for IE due to #1575 issue. Remove this ignore statement after the issue fix. | ||
if ( CKEDITOR.env.ie && !CKEDITOR.env.edge ) { | ||
bender.ignore(); | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@bender-tags: selection, fake, widget, 4.9.0, bug, 1570 | ||
@bender-ui: collapsed | ||
@bender-ckeditor-plugins: wysiwygarea, placeholder, basicstyles, toolbar, floatingspace | ||
|
||
1. Focus the placeholder widget. | ||
2. Blur the placeholder widget. | ||
3. Focus placeholder widget again. | ||
4. Press `ctrl/cmd + x` key. | ||
|
||
## Expected | ||
|
||
The placeholder widget shouldn't change. | ||
|
||
## Unexpected | ||
|
||
The placeholder widget has been deleted. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters