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

CommentFileSizeAuthor
#5 soembed--support-ckeditor5-3402582.patch671 bytesloze

Issue fork soembed-3402582

Command icon 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

loze created an issue. See original summary.

loze’s picture

Issue summary: View changes
loze’s picture

Issue summary: View changes
loze’s picture

Issue summary: View changes
loze’s picture

Status: Active » Needs review
StatusFileSize
new671 bytes

Here's a small patch that fixes it for me.

  • Ki committed 4e106a8b on 8.x-2.x authored by loze
    Issue #3402582 by loze: Does not work with ckeditor 5
    
ki’s picture

Status: Needs review » Fixed

Released in 8.x-2.0-beta5

ki’s picture

Status: Fixed » Closed (fixed)

Released in 8.x-2.0-beta5