fastaddons / AutoHighlight

This repository is for tracking bugs and documentation only
Other
22 stars 3 forks source link

Color tag text when editing post #24

Closed Valus3000 closed 1 year ago

Valus3000 commented 1 year ago

Describe the bug
If you edit a post that contains your highlighted word, in this case a member user_name of a forum (XenForo), the post/text would change to [COLOR=#E8F5E9FF]user_name[/COLOR] . Instead of just the user_name. If you edit a second time it add another color tag like [[COLOR=#E8F5E9FF][COLOR=#E8F5E9FF]user_name[/COLOR][/COLOR] . Only way to fix is to disable the addon then edit the post to remove the color tag then put back on the addon. Trying to remove the color tag without disabling the addon would remove the entire user_name and other tags.

Steps To Reproduce

  1. Add a member name from a forum to the addon
  2. Quote the person post / reply to the person
  3. Post your reply
  4. Edit your reply / quote of the person
  5. The color tag problem shows in their user name

Expected behavior
I expect when you edit the post/quote you would not see the color tag and just the color of the person user_name as it was the first time you reply/quote.

Device info:

Additional info Attach some screenshot of initial quote/reply then another image showing what happens when you edit the post.

How it suppose to look / Originally looks: 1

After you edit the post to maybe say more or mention something else: 2

If you edit a 3rd time without fixing the problem by disabling the addon and remove previous color text: 3

fastaddons commented 1 year ago

Hello, Thank you for reporting this! That looks pretty bad. I'm surprised this was not reported before, they must be using some custom editor. But how do I fix it? :) I could add option to automatically "skip" all editable fields. I'll see what I can do. I'll look into it when I start working on a new release.

Valus3000 commented 1 year ago

@fastaddons today I notice on several website it is now worst. Addon version still says v4.7. However, firefox was updated to v112.0 (April 11, 2023).

Now simply replying to the person, gives the problem. Making the addon unusable. Before... it only happened when editing a previous post. Now I notice, it happens from simply replying the first time.

Juraj-Masiar commented 1 year ago

Hello, I don't think Firefox update could break that, it's more likely that they have changed something. In any case, new version 4.8 will now skip editable HTML fields by default, so that should help. It was just released for Firefox.

Valus3000 commented 1 year ago

Confirming it works. Thank you so much 😁