-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Editing a rich text field which contains a rango hint submits the hint contained when submitting the form #20
Comments
This is a weird one 😅. I don't use Jira so I can't test. Would you mind trying to set the attribute readonly to the hints to see if the issue goes away? Maybe you can do it in the devtools to see if it works. Making it work for iframes was just a matter of setting all_frames to true in the manifest so the content scripts get executed in all frames. Then I store the hints and to which frame it belongs in the background script. It's all a bit more convoluted now because I have to use local storage to support manifest v3. In theory I believe I could move all the hints to the main frame if I also stored the coordinates but it would not be trivial |
You mean add |
Could you try setting the div container to |
That doesn't change the behaviour either. |
Ok. Thanks for trying. Let's leave this issue open for now. I'll see if I can come up with something. |
No problem.
I'm pretty sure the editor is TinyMCE from what I can see from the DOM and
searching info about Jira. I then tried googling to see if there are any
classes you can add to elements which the lib would ignore/exclude when
grabbing content but I didn't see anything. It would be fine if they didn't
attach the editor to the `body`, it is unfortunate.
…On Sat, 4 Jun 2022, 6:41 pm David Tejada, ***@***.***> wrote:
Ok. Thanks for trying. Let's leave this issue open for now. I'll see if I
can come up with something.
—
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACIYKRMGCUPNDL5LDSAMNTVNL3BRANCNFSM5XDFGGYA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I'm thinking a possible solution could be not to display hints in frames where the whole body is contenteditable. |
Oh I like that nice and simple idea! Hopefully that wouldn't cause much confusion or oddness for anyone else. |
I've tested it in this TinyMCE example page and seems to work nicely. |
Will be available in v0.2.0 that I will release soon |
Oh that's quite a nice and simple idea!
…On Wed, Jun 8, 2022 at 6:40 PM David Tejada ***@***.***> wrote:
I'm thinking a possible solution could be not to display hints in frames
where the whole body is contenteditable.
—
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACIYKVM7JASULBGUQ6UYLDVOA553ANCNFSM5XDFGGYA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
From version 0.3.0 on this issue is not present. The hints are rendered but they will not be submitted or appear if you copy the text. Hints are rendered using shadow dom, what avoids the issue altogether. |
…able for solving issue #20. Now that hints render using shadow dom this issue doesn't exist.
I have only witnessed this in Jira but have not gone looking to replicate anywhere else yet.
If you are editing a rich text input area which has a link in it, it is marked up with a rango hint
bq
If you then submit the form the hint letters end up in the saved content -
bq
The text was updated successfully, but these errors were encountered: