Closed socialltd closed 7 years ago
If we apply this to TextArea element the height of resultant DIV is not adjusted as per the TextArea rows. To achieve this I added the following line of code..
jquery.emojipicker.js
if ($textarea.attr('maxlength')) { this.$editor.attr('maxlength', $textarea.attr('maxlength')); } var unicodeToImageText = this.emojiPopup.unicodeToImage($textarea.val()); this.$editor.html(unicodeToImageText); this.$editor.attr({ 'data-id': id, 'data-type': 'input', 'placeholder': $textarea.attr('placeholder'), 'contenteditable': 'true', });
--REPLACE with this block---
if ($textarea.attr('maxlength')) { this.$editor.attr('maxlength', $textarea.attr('maxlength')); } this.$editor.height($textarea.outerHeight()); //auto adjust height var unicodeToImageText = this.emojiPopup.unicodeToImage($textarea.val()); this.$editor.html(unicodeToImageText); this.$editor.attr({ 'data-id': id, 'data-type': 'input', 'placeholder': $textarea.attr('placeholder'), 'contenteditable': 'true', });
it help me ,tks
Thanks!
fixed in this commit https://github.com/OneSignal/emoji-picker/commit/5dc2afa59b741fa798f3d36a07b990521a1312e9
If we apply this to TextArea element the height of resultant DIV is not adjusted as per the TextArea rows. To achieve this I added the following line of code..
jquery.emojipicker.js
--look for this block --
--REPLACE with this block---