Disable event.preventDefeault() for anchor onClick event
Question
I want to open a modal on clicking to anchor in the provided html in grapesjs Editor. I have bind onClick event on anchor but on clicking to that anchor takes to prevDef method of grapesjs which triggers 'event.preventDefault()'. So is there a way to disable it or a way to open a modal on clicking to that modal?
Answers (2)
Can you show use a live demo of your example?
I want to open a modal
The modal from the template or the one from GrapesJS?
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3577
BUG: The UndoManager hasUndo() method returns true when it shouldnt
I am trying to disable the undo button when there are no undo actions to do. To do so, I am listening to 'change:changesCount' event, and u...
Issue #1364
[Bug]: Error on multiple instances of grapesjs
Hello, I use Grapesjs in my reactJS application. I have a react component which is an instance of Grapesjs. So I can add this component in...
Issue #1708
StyleManager events fire multiple times per change
To reproduce: On a fresh install of GrapesJS, within the demo page (within index.html), add an event listener like so: editor.on('component...
Issue #3608
FEAT: Disable Dragging
What are you trying to add to GrapesJS? I have implemented an alternative text editing component (not based on RTE). I want people to be ab...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.