Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Ryan778
GitHub Repository: Ryan778/Ryan778.github.io
Path: blob/master/emojionearea/src/emojionearea.js
575 views
1
define([
2
'jquery',
3
'prototype/var/EmojioneArea',
4
'var/getDefaultOptions',
5
'prototype/on',
6
'prototype/off',
7
'prototype/trigger',
8
'prototype/setFocus',
9
'prototype/setText',
10
'prototype/getText',
11
'prototype/showPicker',
12
'prototype/hidePicker'
13
],
14
function($, EmojioneArea, getDefaultOptions) {
15
$.fn.emojioneArea = function(options) {
16
return this.each(function() {
17
if (!!this.emojioneArea) return this.emojioneArea;
18
$.data(this, 'emojioneArea', this.emojioneArea = new EmojioneArea($(this), options));
19
return this.emojioneArea;
20
});
21
};
22
23
$.fn.emojioneArea.defaults = getDefaultOptions();
24
});
25