Problem/Motivation
When using ckeditor5 the new lines in the value of the textfield are removed and just one long string of html is returned
For example: <p>line on</p><p>https://some-oembed-url</p><p>line three</p>
all as one line of text.
This causes the regex in this module to fail and the urls are not picked up.
Steps to reproduce
- Use ckeditor5 with soembed on the input filter
- Add a url that should have an oembed on a new line, and save the node
- the url is not embedded.
Proposed resolution
update the regex to account for this.
I will provide a patch
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | soembed--support-ckeditor5-3402582.patch | 671 bytes | loze |
Issue fork soembed-3402582
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
loze commentedComment #3
loze commentedComment #4
loze commentedComment #5
loze commentedHere's a small patch that fixes it for me.
Comment #7
ki commentedReleased in 8.x-2.0-beta5
Comment #8
ki commentedReleased in 8.x-2.0-beta5