Skip to content

Latest commit

 

History

History
executable file
·
22 lines (20 loc) · 735 Bytes

README.md

File metadata and controls

executable file
·
22 lines (20 loc) · 735 Bytes

Redactor feature image plugin

Redactor plugin for adding emoji from twitter Twemoji. see all emoji http://twitter.github.io/twemoji/1/test/preview.html

Usage

JavaScript

$('#redactor').redactor({
    plugins: ['twemoji'],
    emojiset: {
		'UserDefined 1': '[htmlenity code]', '[htmlenity code];', '[htmlenity code]',
		..
		..
		'UserDefined 2': '[htmlenity code]', '[htmlenity code];', '[htmlenity code]',
	},
	twemojiurl: "[twemoji library url]" /* use https://twemoji.maxcdn.com/twemoji.min.js by default */
	twemojiconfig: { /* all config https://github.com/twitter/twemoji#object-as-parameter */
		ext: '.png',
		size: 36
	}
});