-
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
Show matched emoji name instead of an ID in emoji suggestion box #2656
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
28e338e
Tests: added test case.
engineering-this 4ed806d
Tests: added manual test.
engineering-this c63bb93
Tests: added manual test.
engineering-this b41e529
Emoji: autocomplete panel will show emoji name instead of emoji id.
engineering-this c411f0b
Tests: corrected tags.
engineering-this 59b8046
Tests: added test cases for emoji names cache.
engineering-this 1a10e1c
Cached emoji names. Renamed getEmojiName to getEncodedName.
engineering-this 1bcf633
Tests: updated test steps, removed redundant editor name.
engineering-this 07812c4
Tests: added manual test.
engineering-this 4598af0
Moved emoji preview to span, added styles to display it correctly.
engineering-this 4f29168
Tests: removed EmojiPanel button.
engineering-this 3e40cf4
Tests: changed element.$.innerText to element.getTexT() in assertion.
engineering-this e15d209
Reworked getEncodedName to addEncodedName, now function only adds mis…
engineering-this 9a2e4fe
Tests: corrected codestyle.
engineering-this 3ef13cb
Updated tests.
jacekbogdanski a6fb8e8
Refactoring.
jacekbogdanski 42d9604
Updated test to use name instead of ID.
jacekbogdanski 93059e9
Updated emoji name.
jacekbogdanski 8b80bf7
Updated test description to contain underscores.
jacekbogdanski fe47c28
Rewording.
jacekbogdanski 4de9296
Improved tests.
jacekbogdanski dd62de8
Added changelog entry.
jacekbogdanski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,11 @@ | ||
<textarea id="editor" cols="10" rows="10"> | ||
<p></p> | ||
</textarea> | ||
|
||
<script> | ||
bender.tools.ignoreUnsupportedEnvironment( 'emoji' ); | ||
|
||
CKEDITOR.replace( 'editor', { | ||
removeButtons: 'EmojiPanel' | ||
} ); | ||
</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,15 @@ | ||
@bender-tags: 4.14.0, feature, emoji, 2583 | ||
@bender-ckeditor-plugins: wysiwygarea, toolbar, emoji | ||
@bender-ui: collapsed | ||
@bender-include: ../_helpers/tools.js | ||
|
||
1. Focus the editor. | ||
1. Type `:smiling_face:` | ||
|
||
## Expected: | ||
|
||
The emoji suggestion box appears with the match: `☺️ smiling_face`. | ||
|
||
## Unexpected: | ||
|
||
The emoji suggestion box appears with the match: `☺️ :smiling_face:`. |
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,9 @@ | ||
<textarea id="editor" cols="10" rows="10"> | ||
<p></p> | ||
</textarea> | ||
|
||
<script> | ||
bender.tools.ignoreUnsupportedEnvironment( 'emoji' ); | ||
|
||
CKEDITOR.replace( 'editor' ); | ||
msamsel marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</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,15 @@ | ||||||
@bender-tags: 4.14.0, feature, emoji, 2583 | ||||||
@bender-ckeditor-plugins: wysiwygarea, toolbar, emoji | ||||||
@bender-ui: collapsed | ||||||
@bender-include: ../_helpers/tools.js | ||||||
|
||||||
1. Focus the editor. | ||||||
1. Type `:smiling_face:` | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See #2656 (comment) |
||||||
|
||||||
## Expected: | ||||||
|
||||||
Emoji suggestion box displays a nicely colored emoji symbol like this one: <span style="font-family:"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";">☺</span>. | ||||||
|
||||||
## Unexpected: | ||||||
|
||||||
Emoji suggestion box displays an ugly black and white smiley like this one: <span style="font-family:sans-serif">☺</span> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
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.
It's rather obvious if in the previous step you are asked to focus the editor.