Coder Social home page Coder Social logo

coraza / angular-emoji-popup Goto Github PK

View Code? Open in Web Editor NEW
105.0 105.0 50.0 7.09 MB

Angular based Emoji Popup along with filters for encoding/decoding emojis

Home Page: http://coraza.github.io/angular-emoji-popup/

JavaScript 97.25% CSS 2.05% HTML 0.70%

angular-emoji-popup's People

Contributors

k-zakhariy avatar madhur avatar shirishparsekar avatar sumit0k 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  avatar  avatar  avatar  avatar

angular-emoji-popup's Issues

Across browsers

Emoji not working across browsers(firefox, IE), Please suggest me how i can resolve this issue.

Not working with ionic framework

Hi there. I'm having some issues integrating this lib with an ionic project, it doesn't show any error on console but emojis only work well until second click. After click by the third time, they start appending right after the first emoji and text cursor won't work properly after that. Please help.

captura de pantalla 2015-09-19 a las 2 23 17 p m

Emoticons append on left side even we have already text

I'm testing this emoji with the Ionic android app . Each and every time when i added the emoticons it gets appended on left of the text .

For example ๐Ÿ˜ก Hello But it should be like Hello ๐Ÿ˜ก

I take a pull request from master branch but facing such issue
If anyone get the solution please let me know
Thanks in advance

Cannot read property 'offsetHeight' of undefined

Hey, everytime i run the webpage with the emoji code i got the following error :

TypeError: Cannot read property 'offsetHeight' of undefined
   at emojiDirectives.js:145
   at angular.js:16380
   at completeOutstandingRequest (angular.js:4940)
   at angular.js:5328

Tracking the line code, the error is from :

     var height = richTextarea.offsetHeight;

So richTextarea is undefined. I don't get why... He should be instanciated by the following line 30 of emojiDirectives.js :

         richTextarea = $(
                '.emoji-wysiwyg-editor', element)[0];

.emoji-wysiwyg-editor is supposed to be added by jquery.emojiarea.js on line 339 :

    this.$editor = $('<div>').addClass('emoji-wysiwyg-editor');

Has anyone got this error ? Any pointers would be appreciated.

Pressing enter to send message only works after button interaction

I have a textarea where I'm using a custom ng-enter to call a sendMessage function when I press enter, but after adding the popup I can no longer press enter to send the message.. How can I make sure that the enter button calls the function I want after the contenteditable area has appeared?

I tried setting it on the wrapping div that becomes the contenteditable area but pressing enter only works after I've inserted an emoji by clicking the button:

<div emoji-form emoji-message="emojiMessage" ng-enter="sendMessage(chat, chat.emojiMessage)">
        <textarea ng-model="chat.emojiMessage"></textarea>
    <button id="emojibtn">
        <i class="icon icon-emoji"></i>
    </button>
</div>

Is there a way to fix this?

HTML gets parsed

The colonToSmiley filter applied at ng-bind-html parses the complete html, which results in <script></script>tag bug.

<span ng-bind-html="message.content | colonToSmiley " style="white-space: normal;"> </span>
And also unable to send '<' less than character
Is there any other way to use colonToSmiley filter without the need of ng-bind-html ?
Any help would be appreciated
Thanks.

Pop-Up not displaying

The content of css file src/emoji.css are not present in dist/emoji.min.css and hence no popup is displayed in the webpage.

It took me a while to implement this in my project, so I am just adding it here to save time for others. Use CSS from src folder or add the content of src/emoji,css in your main stylesheet.

error after instalation

Error: text is undefined
$interpolate@http://localhost:3000/components/angular/angular.js:10946:11
e@http://localhost:3000/components/angular-emoji-popup/dist/js/emoji.min.js:3:2742

emoji menu location

Hello,
I want to move "div class='emoji-menu'... " location!!
Could i this?

Submit is not catching emojiMessage.messagetext

I've changed the behavior of the textarea to look like a input text (submit when enter is pressed), but I can not read the property $scope.emojiMessage.messagetext when I catch the submit. I'm doing a chat and it's important because everyone likes to send messages just pressing enter.

not working with linky filter

<p class="preline" dir="auto" ng-bind-html="::post.body| codeToSmiley" ></p>  WORKS FINE

<p class="preline" dir="auto" ng-bind-html="::post.body| linky" ></p> Also works file

yet

<p class="preline" dir="auto" ng-bind-html="::post.body| linky |codeToSmiley" ></p>
OR
<p class="preline" dir="auto" ng-bind-html="::post.body| codeToSmiley | linky" ></p>

doesnt work

angular-emojis are not working on ionic app in desktop browser

hi team,
Greetings of the day.
First of all, i am very thankful to the team who developed the emoji popup. it works great. it helped me very well
but there is an issue that is
i am working on a ionic project. i used these emoji there. when the app runs on mobile browser , emoji works well , but when it runs on desktop browser, emoji doesn't work. it opens the popup but doesn't gets selected. kindly help me . i am breaking my head for many days.

thank you

ios 8 emoji pack

Hi. Apple extend emoji list in ios 8. Could you please update your repo. Many thans!

angular-emoji not working with ionic project

emoji not going to be print into the textbox...
it gives an error 'offsetHeight' of undefied...
and its ionic-bundle.min.js is conflict...
it works better without ionic project..
help me out plzz..!!

TypeError: Cannot read properties of undefined (reading 'createIcon') at emoji.min.js:189:31

When I use this package for decoding, I faced above error.
TypeError: Cannot read properties of undefined (reading 'createIcon') at emoji.min.js:189:31 at String.replace (<anonymous>) at emoji.min.js:185:63 at fn (eval at compile (angular.js:15551:15), <anonymous>:4:234) at e (angular.js:16658:55) at angular.js:16553:26 at m.$digest (angular.js:18253:34) at m.$apply (angular.js:18531:13) at HTMLDivElement.<anonymous> (angular.js:27346:17) at HTMLDivElement.dispatch (jquery.min.js:3:10316)

Please help me, full stacks!

Icons missing - img path

I've installed this using bower and it's almost working. Would seem the images aren't loading because of the path.

The smily icon loads from:

url(../img/IconsetW.png)

Assuming there something missing from the README

screen shot 2015-12-19 at 17 02 52

Only use the emoji button

I have my own textarea filled with other directives and custom styling and just wanted to use the emoji popup to fill my own textarea. Is this somehow possible? The problem is, that my textarea gets hidden when I try use the emoji popup

insert char delete previous emoji

Hi,
I have an issue with your plugin. When I insert an emoji and then start writting characters, my emoji are removed from my ng-model. I am searching for a solution since yesterday but I don't know where this can happened in the code.
Can you help me please?

Unicode character decoding not working.

Hi,

I am trying to use codeToSmiley filter, but is is not working.

Sample unicode returning from my backend service is \u2601\ufe0f. Can you please help me?

error in emoji.min.js file

Error: [$injector:modulerr] Failed to instantiate module emojiApp due to:
TypeError: Cannot set property 'spritesheetPath' of undefined

strange emoji version

many undocumented features and bugs
for example:
Uncaught ReferenceError: $modalStack is not definedl @ emoji.min.js:3jQuery.event.dispatch @ jquery.js:4435elemData.handle @ jquery.js:4121

What'a fuck - what is a $modalStack and why I know about method replyToUser (something like this) which calling every time when user presses enter?

Or strange console dumps, like "user uses paste" (smth like this) in my dev console

Styles of Demo Page are minified into

the minified version (dist/emoji.min.css) also contains the styles from the demo page (css/styles.css). Therefore, elements like body background and h1 are altered. Please remove this from the minified version.

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.