Giter Site home page Giter Site logo

Comments (4)

dmacfarlane avatar dmacfarlane commented on August 14, 2024 1

This is possible in version 1.1.1 as shown here:

https://stackblitz.com/edit/angular-mentions-button

from angular-mentions.

Cow-B avatar Cow-B commented on August 14, 2024

I'm looking for the same functionnality. @ghernagon have you find a way ?

from angular-mentions.

aeslinger0 avatar aeslinger0 commented on August 14, 2024

@dmacfarlane what about using contentEditable? Should that work as well? I tried this for TinyMCE, and it works if there's already content in the box, but it hangs if the box is empty.

editor.ui.registry.addButton('mentionButton', {
  text: '@',
  tooltip: 'Mention someone',
  onAction: () => {
    const frame = <any>window.frames[editor.iframeElement.id];
    const contentEditable = frame.contentDocument.getElementById('tinymce');
    this.mention.startSearch('@', contentEditable);
  }
});

Do I need to change how I'm doing it or are there known issues with contentEditable?

from angular-mentions.

jaymehtasa avatar jaymehtasa commented on August 14, 2024

@aeslinger0 you were able to fix the issue when it's contentEditable, if possible please share the solution, I am also facing the same issue

from angular-mentions.

Related Issues (20)

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.