Skip to content

jadwigo/demoji.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

demoji.js

Remove emoji from input forms to prevent database problems.

what does it do

This script will rewrite the input of all input[type=text] and textarea fields when a form is submitted. If any emojis are found in the submitted value, this script will replace it for a shortcode.

The script uses the emoji library from Emojione.com to convert the emoji.

why is it needed

In some older version of phpBB adding Emoji from a mobile device will result in a database error.

how to use

Copy the jquery.demoji.js to your website, add the following code to your HTML head and you're done.

    <link rel="stylesheet" href="//cdn.jsdelivr.net/emojione/1.5.0/assets/css/emojione.min.css"/>
    <script type="text/javascript" src="//code.jquery.com/jquery-1.11.3.min.js"></script>
    <script src="//cdn.jsdelivr.net/emojione/1.5.0/lib/js/emojione.min.js"></script>
    <script src="jquery.demoji.js"></script>

You might need to modify the path to jquery.demoji.js according to your own website structure.

Demoji.js license

About

Remove emoji from input forms to prevent database problems

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors