Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When pasting plain-text-only clipboard data, use that plain-text data in the paste processing. This overrides the default behavior whereby an HTML-encoded counterpart of the plain text is used for processing. Previously, pasting the following text as a plain-text attachment: [gallery ids="1,2,3"] Would be processed as: [gallery ids="1,2,3"] Thus affecting the correct parsing of shortcodes. With this change, parsing of shortcodes works when pasting a plain-text object — like the one above — but also when pasting rich-text objects. For instance, copying a shortcode snippet from a rich-text page, even if not wrapped with a `<pre>`, will be handled properly and yield a valid Gallery block: <meta charset='utf-8'><span style="…">[gallery ids="10,11,9"]</span>
- Loading branch information