-
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 #4122 from ckeditor/t/4107
Fix autocomplete navigation with multiple instances.
- Loading branch information
Showing
5 changed files
with
72 additions
and
11 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
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,29 @@ | ||
<textarea id="editor"></textarea> | ||
|
||
<script> | ||
var feed = [ | ||
'john', | ||
'thomas', | ||
'anna', | ||
'annabelle', | ||
'cris', | ||
'julia' | ||
]; | ||
|
||
var editor = CKEDITOR.replace( 'editor', { | ||
width: 600, | ||
mentions: [ | ||
{ | ||
feed: feed, | ||
minChars: 0 | ||
}, | ||
{ | ||
feed: feed, | ||
minChars: 0, | ||
marker: '#' | ||
} | ||
] | ||
} ); | ||
|
||
bender.tools.ignoreUnsupportedEnvironment( 'mentions', editor ); | ||
</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,19 @@ | ||
@bender-tags: 4.14.2, bug, 4107 | ||
@bender-ui: collapsed | ||
@bender-ckeditor-plugins: wysiwygarea, toolbar, basicstyles, mentions, sourcearea | ||
|
||
1. Toggle source mode. | ||
1. Focus the editor. | ||
1. Type `@` to open completion panel. | ||
1. Navigate through items using arrow keys. | ||
1. Close completion panel using `esc` key. | ||
1. Type `#` to open completion panel. | ||
1. Navigate through items using arrow keys. | ||
|
||
## Expected | ||
|
||
For both completion panels under `@` and `#` characters, you should be able to navigate through items using arrow keys. | ||
|
||
## Unexpected | ||
|
||
Navigation keys doesn't work for both or one of completion panels after toggling source mode. |