Git Product home page Git Product logo

emoji-vue's Introduction

emoji-vue

😀 😁 😂 🤣 😃 😄 😅 😆 😉 😊 😋

A Vue.js project implementing a input field addon allowing to add emojis via dropdown.

dependencies status

Install ⚙️

npm i emoji-vue --save

emoji-vue preview image

Use 😎👌🏻

import VueEmoji from 'emoji-vue'


//in component def
  methods: {
      onInput(event) {
          //event.data contains the value of the textarea
      },
      clearTextarea(){
        this.$refs.emoji.clear()
      },  
  },
  components: {
    VueEmoji
  }

//in template section
<VueEmoji ref="emoji" @input="onInput" :value="myText" />

Event & properties 📕 📗 📘 📙

@input - event generated when content of textarea with emoji selector is changed.

value - property to place initial content of the textarea.

width - sets width of visible textarea in px; defaults to '200px'.

height - sets height of visible textarea in px; defaults to '50px'.

Build Setup 🧠 ❤️ ✅

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

Project uses the following setup: guide and docs for vue-loader.

Check the DEMO

About

Based on code from https://github.com/OneSignal/emoji-picker

Create an issue or ping me on twitter @legkoletat

License

MIT

emoji-vue's People

Contributors

shershen08 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

emoji-vue's Issues

Doesn't work on VueJS 2.5.17

I get an error in Vue 2.5.17. Should emoji-vue work on this version?

[Vue warn]: Error in nextTick: "TypeError: this.emojiPopup.appendUnicodeAsImageToElement is not a function"
TypeError: this.emojiPopup.appendUnicodeAsImageToElement is not a function
    at new EmojiArea_WYSIWYG (emoji.js:349)
    at HTMLTextAreaElement.<anonymous> (emoji.js:58)
    at Function.each (backend.js:5359)
    at jQuery.fn.init.each (backend.js:5194)
    at jQuery.fn.init.$.fn.emojiarea (emoji.js:53)
    at EmojiPicker.discover (backend.js:102604)
    at VueComponent.initEmojiPlugin (backend.js:57255)
    at backend.js:57269
    at Array.<anonymous> (backend.js:17552)
    at flushCallbacks (backend.js:17473)

I can't build when I use it

Is caused by UglifyJs,like that

ERROR in static/js/vendor.336cc80736d2b58efdd2.js from UglifyJs
undefined
  Build failed with errors.

The log is as follows

13 verbose stack Error: [email protected] build: `node build/build.js`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (D:\Program Files\Nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
13 verbose stack     at EventEmitter.emit (events.js:182:13)
13 verbose stack     at ChildProcess.<anonymous> (D:\Program Files\Nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:182:13)
13 verbose stack     at maybeClose (internal/child_process.js:962:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
14 verbose pkgid [email protected]
15 verbose cwd C:\Users\wangx\Projects\picture\picture-web
16 verbose Windows_NT 6.1.7601
17 verbose argv "D:\\Program Files\\Nodejs\\node.exe" "D:\\Program Files\\Nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
18 verbose node v10.14.2
19 verbose npm  v6.4.1

thanks

Emoji icon color issue

Laravel2

In the above image if i add another icon before this then display with the color if not add any icons the display black and white.

about insert emoji to mysql (messy code)

hello,I directly get the readText value insert into mysql , a part of (90%) will messy code.

mysql already use utf8mb4 and link of utf8mb4.
image

SQL:
image

INSERT INTO `ar_mediaset` (`media_id`,`no_search`,`content_t`) VALUES ('gh_01ac1cbf92e1','没找到','🎃⭐️⭐️🌾🐱🐅🐻🐨🐯🐒🐴');

image

what should I do, can solve the quesition ??? HELP.

Maxlength prop feature

Could you add a maxlength prop? I really miss it.

Or maybe do you have any ideas on how to limit max length

Emojis are not displayed properly

If I continuously add two emojis at the end of the string then the first emoji comes at the end of the string and the other at the starting of the string which is not correct both emojis should come at the end of the string one after another.

Reset text input?

How can I reset the text in the plugin?

<VueEmoji @input="onInput" :value="myText" width="500" height="25"/>
...

onInput(event){
                this.messageText = event.data;
            },

I tried

reset(){
  this.myText = "";
  this.messageText = "";
}

but it still shows the content.

emoji-vue components init problem

when i import emoji-vue components ,i got a error vue.esm.js:591 [Vue warn]: Error in nextTick: "TypeError: Cannot read property 'style' of null" , give me some help ,please?

a small issue

1.how can I get the Emoticon in other place
(怎么把输入的表情放在其他地方)
2.I want close the emoji panel when I pick Emoticon
(我想在选了表情之后关闭表情选择的面板)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.