Issue Bug Closed

#67876FindReplace: Highlighting and saving saves the highlight spans

filigivuji filigivuji 07/01/15, 20:55 updated 05/04/17, 20:54

Description

  1. Open the FindReplace dialog.
  2. Under “Search for”, enter a phrase from the RTE’s text.
  3. Press “No”.
  4. (Optional: Press the “Highlight” button to highlight other occurrences.)
  5. Press the content element’s “Save document” button without closing the FindReplace dialog before.

Expected behavior:
The “htmlarea-frmark” spans get removed before saving the RTE’s content to the database.
What happens instead:
The “htmlarea-frmark” spans are saved to the database.

Workaround to delete such spans:
Load the RTE on the same content element, and simply open and close the FindReplace dialog.

Fix:
HTMLArea.FindReplace.clearDoc should be called before submitting the form.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.