Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

summernote onclick event #3525

Closed
dragoso opened this issue Dec 16, 2019 · 3 comments
Closed

summernote onclick event #3525

dragoso opened this issue Dec 16, 2019 · 3 comments

Comments

@dragoso
Copy link

dragoso commented Dec 16, 2019

Before submitting an issue, please make sure to search for already open issues, and add to that. This way we can track issues more easily. Thank you, and Thanks for using Summernote.

Please answer the below questions, this will help us to more easily resolve whatever issues you are having, and direct issue to the suitable people to with your issue or to give you correct answers.

Description of your Issue or Request:

I need to do an action by clicking on a piece of text, but I can't seem to call onclick

steps to reproduce (Add more if necessary):

  1. $(".summernote").on("summernote.click", function (e)
    or

  2. $(".summernote").on(".click", function (e)

What is your Operating System, Browser and Version and Summernote Version you are using:

This can help find and resolve any issues.

  1. Operating System: Windows

  2. Browser and Version: Chorme 78

  3. Summernote Version (including which BS3, BS4, Lite or All):
    last

@easylogic
Copy link
Member

hi @dragoso

Do you want to do action when selected text is clicked ?

@easylogic
Copy link
Member

@dragoso

You can use summernote.mousedown or summernote.mouseup.

Please see below code

$(".summernote").on("summernote.mouseup", function (e, mouseEvent) {
    console.log(mouseEvent)
})

@DiemenDesign
Copy link
Member

It looks like this issue has been abandoned or no longer requires help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants