Coder Social home page Coder Social logo

jquery-emojiarea's People

Contributors

brianreavis 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  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

jquery-emojiarea's Issues

Security issue

I am not sure how this plug in works honestly, but lets say you have <textarea>value</textarea>

if you set value to be <script>alert("test");</script> which is a script code but encoded to prevent js injection, then it gets transformed and excecuted, this one just alerts test.

I have made a fiddle as proof https://jsfiddle.net/1tkpcjbq/

Popup direction

I want popup bottom 0. But is default is top:0 can i change this ?

JQuery .val() not working as expected

When running JQuery's val() function on a emojiarea, the div is not affected. For example, $("textarea").val(''); does not clear the div.

A workaround can be used: $(".emoji-wysiwyg-editor").html('');

Not working with IE8

This thingy doesn't work with IE8.
You can't pick any emoji what so ever. There is no "emoji" text to select emojis.

Screenshot attached
img_10012014_175200

Avoid duplicate entries in menu

If you have the same image for many smiley (i. e. ':)' and ':-)'), emoji-menu has duplicate entries.

To avoid this, I changed your code.
Here if you want to integrate this feature:

        var filenames = [];
        for (var key in options) {
            if (options.hasOwnProperty(key)) {
                var filename = options[key];
                var alreadyExists = ($.inArray(filename, filenames) > -1);
                if (!alreadyExists) {
                    filenames.push(filename);
                    html.push('<a href="javascript:void(0)" title="' + util.htmlEntities(key) + '">' + EmojiArea.createIcon(key) + '<span class="label">' + util.htmlEntities(key) + '</span></a>');
                }
            }
        }

Can i WYSIWYG in Textarea live the Emojis?

I want that the user writes in the textarea and if he write a smiley that the plugin render it live in the textarea, anyway to do this? (Maybe he write :-) and the smiley cooming..)

Single emoji form selector?

I have a field that I would like to include only 1 emoji and that's it. However the current function appends the textarea/field. Is there an easy way to overwrite the field with only the new value?

Textarea Placeholder

Hi,

the value of the textarea placeholder attribute should be cloned to the div.emoji-wysiwyg-editor.

Regards
Philip

I cannot show in emojiarea emojis from sprites?

What am I getting wrong?

EmojiArea.createIcon = function (group, emojiName) { var filename = $.emojiarea.icons[group]['icons'][emojiName]; return '<img class="emoji emoji-" src="data-emoji:../../images/sprites/emoji.png"' + filename + '" alt="' + util.htmlEntities(emojiName) + '">'; };

@brianreavis

emojiarea breaks HTML and new lines [fix attached]

Hi there

I've used your lib in my project but had two issues. HTML was not escaped (content was cut on first HTML tag as it was rendered by the browser) and the new lines were not preserved.
Here is my solution - maybe you would like to introduce this fix in the main repo:

In EmojiArea_WYSIWYG function I've changed
var html = this.$editor.text();
to
var html = this.$editor.html();
to preserve content when sharp parenthesis are used (mostly HTML).

Now, as we switch here from <textarea> to content editable <div>, new lines must be presented in HTML to be saved, hence additional line just under the previous one:
html = html.replace(/\n/g, '<br>');

Hope it helps.
Cheers

scrolling down when press space

this script creates contenteditable div inside the page and when the user still editing this layer and press space key the page scrolling down!
I use this
$(document).on("keypress", function(e) { var $focusElem = $(":focus"); if(e.which == 32 && ($focusElem.is("input") || $focusElem.attr("contenteditable") == "true")){ e.preventDefault(); } });

but the page still scrolling down!

Space after emoji

Is it possible to have a space inserted right after the emoji has been added?

Thanks

bower

Thanks for plugin. How i can download jQuery emojiarea plugin with bower package manager.

Split Emojis into sections

I downloaded this plugin and noticed three things:

  1. It doesn't contain all icons (I fixed that by downloading JQuery Emoji and writing a short php script to generate that [if you like it just tell me])
  2. There is a small error in the CSS which prevents scrolling in the icon list, add this at the end of the jquery.emojiarea.css
.emoji-menu div {
overflow-x: hidden;
overflow-y: auto;   
}
  1. And I have a question: Can I split up the icons into sections like this
    Webogram Emojipicker

I quite like this plugin in, nice job ๐Ÿ˜‰

Render Emoji As You Type

Is there a way to render emoji as you type? So when you type ๐Ÿ˜„ , the contenteditable div will rerender the text into smile emoji?

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.