Squire
Squire copied to clipboard
Inserted HTML <button> gets immediately removed
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?
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? you can try this!
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
Hello @Patapomhttps://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 GitHubhttps://github.com/fastmail/Squire/issues/415#issuecomment-1708056919, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AANOTVXOXSLLXMZDRWG5GVLXZBD7DANCNFSM5CCXKA3Q. You are receiving this because you were mentioned.Message ID: @.***>
https://github.com/fastmail/Squire#readme
Squire is an HTML5 rich text editor, which provides powerful cross-browser normalisation in a flexible lightweight package (only 16KB of JS after minification and gzip, with no dependencies!).
It was designed to handle email composition for the Fastmail web app.
Does email handle forms (input, select, textarea, button)?