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

Element 'button' is not supported (for information on implementing this, see the support forums #358

Open
Krishna-najpk opened this issue Jan 11, 2023 · 1 comment

Comments

@Krishna-najpk
Copy link

Krishna-najpk commented Jan 11, 2023

Hi,

I am getting this error while adding button tag in html code. - "Element 'button' is not supported (for information on implementing this, see the support forums"

I want to add button tag like this.
<button type="button" onclick="alert('Hello world!')">Click Me!</button>

Here is my config.

'HTML_Allowed' => 'div,b,strong,i,em,a[href|title],ul,ol,li,p[style],br,span[style],img[width|height|alt|src],iframe[src|width|height|class|frameborder],blockquote, *[style|class],button[type]',
'CSS_AllowedProperties' => 'font,
font-size,
font-weight,
font-style,
font-family,
text-decoration,
padding-left,
color,
background-color,
text-align
',
'URI_SafeIframeRegexp' => '%^(https?:)?//(www.linkedin.com/embed/|www.youtube.com/embed/|player.vimeo.com/video/)%'

@ezyang
Copy link
Owner

ezyang commented Jan 11, 2023

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

No branches or pull requests

2 participants