Improve how the module deals with non-embeddable URLs

Created on 6 July 2016, almost 9 years ago
Updated 3 June 2025, 7 days ago

Problem/Motivation

Currently the editor user has no feedback if the URL entered to the embed dialog box is valid or not. If the embed object gets an empty response to ::getCode(), we are silently creating the wrapper with an empty content. The problem with this is that it's impossible to the end user to edit the wrapper back inside the CKEditor preview, and change the URL to a new one. The only solution is to view the source, and delete / modify the code from there.

Proposed resolution

if $info->getCode() returns empty, put an informative string inside the wrapper, allowing users to click on it and modify / delete it without having to go into the source.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain marcoscano Barcelona, Spain

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024