|
@@ -1352,6 +1352,12 @@
|
1352
|
1352
|
zss_editor.enabledEditingItems();
|
1353
|
1353
|
}
|
1354
|
1354
|
|
|
1355
|
+ zss_editor.insertEmoji = function(url) {
|
|
1356
|
+ zss_editor.restorerange();
|
|
1357
|
+ document.execCommand('insertHTML', false, '<img class="emoji" src="' + encodeHtmlEntities(url) + '"/>');
|
|
1358
|
+ zss_editor.enabledEditingItems();
|
|
1359
|
+ }
|
|
1360
|
+
|
1355
|
1361
|
zss_editor.insertImageBase64String = function(imageBase64String, alt) {
|
1356
|
1362
|
zss_editor.restorerange();
|
1357
|
1363
|
var html = '<img src="data:image/jpeg;base64,'+encodeHtmlEntities(imageBase64String)+'" alt="'+encodeHtmlEntities(alt)+'" />';
|
|
@@ -1683,11 +1689,12 @@
|
1683
|
1689
|
#zss_editor_content {
|
1684
|
1690
|
font-family: Arial, Helvetica, sans-serif;
|
1685
|
1691
|
color: #000;
|
1686
|
|
- width: 95%;
|
|
1692
|
+ width: calc(100% - 20px);
|
1687
|
1693
|
-webkit-overflow-scrolling: touch;
|
1688
|
1694
|
overflow:auto;
|
1689
|
1695
|
padding-left: 10px;
|
1690
|
1696
|
padding-right: 10px;
|
|
1697
|
+ line-height: 20px;
|
1691
|
1698
|
}
|
1692
|
1699
|
|
1693
|
1700
|
#zss_editor_title {
|
|
@@ -1722,6 +1729,14 @@
|
1722
|
1729
|
padding-right: 10px;
|
1723
|
1730
|
display: none;
|
1724
|
1731
|
}
|
|
1732
|
+
|
|
1733
|
+ .emoji {
|
|
1734
|
+ height: 19.5px;
|
|
1735
|
+ width: 19.5px;
|
|
1736
|
+ line-height: 19.5px;
|
|
1737
|
+ display: inline-block;
|
|
1738
|
+ vertical-align: top;
|
|
1739
|
+ }
|
1725
|
1740
|
</style>
|
1726
|
1741
|
|
1727
|
1742
|
<style type="text/css">
|