Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMS 5: Cannot link an image in TinyMCE #1548

Closed
axllent opened this issue Aug 16, 2023 · 4 comments
Closed

CMS 5: Cannot link an image in TinyMCE #1548

axllent opened this issue Aug 16, 2023 · 4 comments

Comments

@axllent
Copy link

axllent commented Aug 16, 2023

Description

As of Silverstripe 5 it is not possible to link just an image within TinyMCE.

Steps to reproduce:

  1. Insert image into editor
  2. Select image, click link (any of "Page on this site", file, external URL etc)
  3. Add/select link, click "Insert link" button

All attempts fail because of Link text is required.. If you fill in any link text (which you shouldn't have to anyway), that text replaces the image.

Behat tests

This fix involves multiple related pull requests - I have run a CI run with silverstripe/installer with all of the pull requests included to show that they work when they're all installed.

PR

CMS 4

CMS 5

@maxime-rainville
Copy link
Contributor

I'm getting the same behaviour on CMS 4.

Interestingly, it works if you are trying to link to a file in CMS 4. In CMS5, it lets you create the link, but doesn't seem to save it.

@emteknetnz emteknetnz self-assigned this Sep 6, 2023
@emteknetnz
Copy link
Member

Linked PRs have been merged

@GuySartorelli
Copy link
Member

GuySartorelli commented Sep 6, 2023

Reopening to make sure the fix works for CMS 5 on merge up since tinyMCE changed a lot between majors

@emteknetnz
Copy link
Member

Linked PRs have been merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants