:smile: (default: false, only applies in css mode) emoji.include_text = true - Set the text inside the tag to the short-name, e.g.:smile: (default: false, only applies in css and img modes) emoji.include_title = true - Set the "title" property on the or tag to the short-name, e.g.emoji.wrap_native = true - Wrap native code points in to allow styling (default: false, only applies in native, google and softbank modes).There are also some further options that change the nature of the output under various modes: emoji.avoid_ms_emoji = true - For browsers on Windows, don't allow native code points (because they look awful) (default: true). e_css_imgs = true - Use individual CSS classes for each emoji, rather than inlining the positioning (default: false, only applies in css mode, requires the CSS file to be loaded).e_sheet = true - Use spritesheets with CSS positioning, instead of individual images (default: false, only applies in css mode).emoji.allow_native = true - Allow output of code points (default: true, otherwise falls back to css or img mode).Options which determine how the emoji.replace_mode value is used at run-time: You can explicitly override the emoji.replace_mode to any of the above values. img - Output HTML images, using elements.css - Output HTML images, using elements with CSS background images.google - Output legacy Android code points.softbank - Output legacy Softbank/iOS code points.You can introspect the auto-detected mode by checking emoji.replace_mode, which :smile: (default: false)Īfter that, the mode is determined automatically by examining the environment and determiningĬapabilities. lons_mode = true - force colon output mode, e.g.emoji.text_mode = true - force text output mode, e.g.The defaults should work well on all platforms. There are many options to control the format of the replacement, although replace_colons ( "Hello :smile:" ) ) Output control Var EmojiConvertor = require ( 'emoji-js' ) var emoji = new EmojiConvertor ( ) console.
0 Comments
Leave a Reply. |