Coder Social home page Coder Social logo

luatnd / jquery-mentiony Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 14.0 46 KB

jQuery plugin for making @mention feature - work exactly the same as Facebook, using contenteditable. Transform textarea/input into contenteditable.

License: MIT License

CSS 2.04% HTML 13.96% JavaScript 83.99%

jquery-mentiony's People

Contributors

abhishekpareek29 avatar dejooo13 avatar luatnd avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

jquery-mentiony's Issues

Plugin does not work on IE 11!

Even the demo page provided: https://luatnd.github.io/jquery-mentiony/ does not work correctly on at least Internet Explorer 11.

When you type something, the original textarea that was mentiony'd is not updated with the correct input. When you use $("#myTextarea").val() or $("#myTextarea")[0].value it returns an empty string.

Mentiony Not working in mobile MS-Teams Application

When try to use mentiony from the responsive browser it works fine but if access the same from MS-Teams mobile application it's not working. After digging out I observed key press event not getting fire.

Is there any solution for the same?

Popover top position is not correct

Currect implementation:
Popover is positioned from top with respect to its parent, whereas the cursor position is calculated withrespect to viewport and content box height is calculated w.r.t document.

Difference of cursor top position and content box top position hence is just some irrelevent term which places the box a random positions every time i scroll

jquery-mentiony installation issue

I have include all file needed ot install that plug-in but the code below not work.
It gives me that error:
Uncaught ReferenceError: content is not defined at HTMLDivElement.onInputBoxInput

`$('#show_post_wall_modal').mentiony({
onDataRequest: function (mode, keyword, onDataRequestCompleteCallback) {

var mentiony___ = {
mentiony_: "mentiony"
}

    $.ajax({
        method: "Post",
        url:'includes/profile_includes/func_infos.php',
        dataType: "json",
        success: function (response) {
            var data = response;

            // NOTE: Assuming this filter process was done on server-side
            data = jQuery.grep(data, function( item ) {
                return item.name.toLowerCase().indexOf(keyword.toLowerCase()) > -1;
            });
            // End server-side

            // Call this to populate mention.
            onDataRequestCompleteCallback.call(this, data);
        },
        data: JSON.stringify(mentiony___)
    });

},
timeOut: 500, // Timeout to show mention after press @
debug: 1, // show debug info

});`

My other question does that plug-in compatible with https://github.com/mervick/emojionearea

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.