Skip to content

Bug: HTML is removed during replacements #61

@sdonkers

Description

@sdonkers

When i open a post with e.g. a paragraph with bold text.
The search and replace removes the html inside the paragraph.
See video.

This is only the first time. The seconds time the replace is called it works.

cause:
in app.tsx line 207:
const oldAttr = attributes[ attribute ].text || attributes[ attribute ];
possible solution
const oldAttr = attributes[ attribute ].originalHTML || attributes[ attribute ];

unless this breaks something else.

bug-search-and-replace.mp4

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions