Opened 12 years ago
Last modified 12 years ago
#10594 confirmed Bug
Error when replacing element with <br> in HTML filter
Reported by: | Piotrek Koszuliński | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
- Open attached sample.
- Switch to source mode.
- Error is thrown.
Attachments (1)
Change History (3)
Changed 12 years ago by
Attachment: | 10594.html added |
---|
comment:1 Changed 12 years ago by
Status: | new → confirmed |
---|
The possible workaround would be to store all images found during filtering and replace them with brs after filters are applied.
To do this listener for editor#toDataFormat is needed. It should be registered with priority 10 to be applied after filters, but before ACF (or if ACF is not a problem - it can be 10-14).
The idea is simple: