Issue #6038Opened August 6, 2024by dharma-glui0 reactions

BUG: Inline event declarations like onclick event on a buttons are getting removed

Question

GrapesJS version

  • I confirm to use the latest version of GrapesJS

What browser are you using?

Chrome

Reproducible demo link

https://jsfiddle.net/6bn43a05/

Describe the bug

How to reproduce the bug?

  1. Add a onclick event for a html tag

What is the expected behavior? It should not remove the event after getting loaded in to the editor

What is the current behavior? It removes the onclick event from html

If is necessary to execute some code in order to reproduce the bug, paste it here below:

// no need to include extra code

Same issue reported here : https://stackoverflow.com/questions/78496572/grapesjs-removes-onclick-attributes-how-to-prevent-it-to-do-it

Screenshot (37)

Code of Conduct

  • I agree to follow this project's Code of Conduct

Answers (1)

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.