LDEV-4429 Preview should show text on a white background Don't add class to the resulted preview body. It can be achieved by removing the following line ,d.getAttribute("class")&&(b+='class\x3d"'+d.getAttribute("class")+'" ')
LDEV-4428 Add emojione and autoembed plugins Both plugins were added as integrated plugins (so no need to specify them as extraPlugins). At the same time Emojione button replaced Smiley one.
As a side note, when adding Emojione plugin as integrated one, its icon gets incorporated into icons.png incorrectly (the size of the icon is much bigger than 16 px) that's why it doesn't get displayed at all. So we need to tweak editor.css and replace CSS rule for .cke_button__emojione_icon with the following: .cke_button__emojione_icon {background: url(../../plugins/emojione/icons/emojione.png?t=dee79e2) no-repeat 0 0 !important; background-size: 100% !important;}