Coder Social home page Coder Social logo

geekjosh / tinymce-emoji Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 11.0 390 KB

A simple tinymce plugin to add a native emoji dialog

Home Page: https://jsfiddle.net/wpd2umt0/1/

License: MIT License

JavaScript 99.90% HTML 0.10%
tinymce emoji tinymce-plugin tinymce-emoji emoji-dialog

tinymce-emoji's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

tinymce-emoji's Issues

Add vendor filtering

Planning to add the option to filter the displayed emoji based on supporting vendor. For most users, showing those supported by Apple, Google and Windows would be the safest option to ensure most users can see the emoji.

Dialog size overflows small windows

Creating the preview in jsfiddle highlighted the fact that tinymce doesn't attempt to resize any windows to fit the browser window - will add in some logic to do this at runtime

Using it with React

Hi Josh,

I'm trying to integrate this plugin into my React App.

My component looks like this:

const Editor = ({
  content,
  handleChange,
}) => {
  return (
    <div>
        <TinyMCE
          content={content}
          config={{
            plugins: '',
            toolbar: `undo redo`,
            external_plugins: {
              emoji: require('tinymce-emoji'),
            },
          }}
          onChange={handleChange}
        />
    </div>
  );
};

My problem is how do you show the emoji dropdown / menu on the toolbar?
I've tried to put emoji in the toolbar prop, but got Uncaught SyntaxError: Unexpected token import.

Thank you!

Improve initial loading speed

The plugin takes a long time to load the first time it's called in each editor session.

I have already tried breaking the HTML generation off in to a promise so that I could add a loading image to improve UX, but the promise resolved almost instantly suggesting the issue is with the way tinymce renders the window on init.

The tinymce docs are notoriously lacking, so I'm not sure where to next with this. If any experienced tinymce plugin developers see this and have any suggestions, they would be much appreciated.

The plugin doesn't open in ipad.

The button shows, but when you click on it, it doesn't open. Do you think you have time to fix the issue? I was planning to use the plugin and as I was testing it I realized it didn't work (didn't open) in ipad. Thank you!

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.