-
Notifications
You must be signed in to change notification settings - Fork 405
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
Inserted HTML <button> gets immediately removed #415
Comments
Hello @Patapom how are you? so the way you wrote it is wrong, I think that must be the cause of the problem! Once you write the button function <button onClick={ doStuff() }>Teste for the function you called to work, it needs to be inside the {} and not "", understand? |
Not sure you have the right address...
…________________________________
From: Natã Martins ***@***.***>
Sent: Wednesday, September 6, 2023 10:12 AM
To: fastmail/Squire ***@***.***>
Cc: Patapom ***@***.***>; Mention ***@***.***>
Subject: Re: [fastmail/Squire] Inserted HTML <button> gets immediately removed (#415)
Hello @Patapom<https://github.com/Patapom> how are you? so the way you wrote it is wrong, I think that must be the cause of the problem! Once you write the button function
<button onClick={ doStuff() }>Teste
for the function you called to work, it needs to be inside the {} and not "", understand?
you can try this!
—
Reply to this email directly, view it on GitHub<#415 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AANOTVXOXSLLXMZDRWG5GVLXZBD7DANCNFSM5CCXKA3Q>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
https://github.com/fastmail/Squire#readme
Does email handle forms (input, select, textarea, button)? |
I have created a commit that allows the allowed block elements (and blacklisted elements) to specified in the config, replacing the regular expressions with a Set instead. Not sure if this is something you would be interested in doing for Squire. I'm doing a bit more hacking so I can use it in one of the projects I'm working on so it can be used for editing less common and custom HTML blocks. |
Hello, I tried to add some HTML within the editor div that contains a clickable
<button onclick="doStuff()">Test</button>
, I can see the button for a short time then it gets removed and replaced by a div instead.Is there a way to configure/prevent this behavior?
The text was updated successfully, but these errors were encountered: