Skip to content

Commit

Permalink
Moved emoji preview to span, added styles to display it correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
engineering-this committed Dec 18, 2018
1 parent 6c6c1d3 commit 0edcfe7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/emoji/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@
editor._.emoji.autocomplete = new CKEDITOR.plugins.autocomplete( editor, {
textTestCallback: getTextTestCallback(),
dataCallback: dataCallback,
itemTemplate: '<li data-id="{id}" class="cke_emoji-suggestion_item">{symbol} {name}</li>',
itemTemplate: '<li data-id="{id}" class="cke_emoji-suggestion_item"><span>{symbol}</span> {name}</li>',
outputTemplate: '{symbol}'
} );
}
Expand Down
4 changes: 4 additions & 0 deletions plugins/emoji/skins/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
font-family: sans-serif, Arial, Verdana, "Trebuchet MS", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.cke_emoji-suggestion_item span {
font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.cke_emoji-panel {
width: 310px;
height: 300px;
Expand Down

0 comments on commit 0edcfe7

Please sign in to comment.