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

Image get lost when add a link to the image #162

Open
3l73 opened this issue May 4, 2022 · 4 comments
Open

Image get lost when add a link to the image #162

3l73 opened this issue May 4, 2022 · 4 comments

Comments

@3l73
Copy link

3l73 commented May 4, 2022

The image within the RTE CKEditor get lost after try to link the image with a page

How to test

  1. Create a simple text element and add an image
  2. Mark the image and click on the link icon
  3. Select a page and set the link

The image vanishied and only the link text is visible

Expected behaviour

Setting a link on an image wrap the link around the image.

Additional information

TYPO3 version: 11.5.8
Extension version: dev-master (Hash: 20297bb)

@3l73
Copy link
Author

3l73 commented May 12, 2022

It seems that the content of the link itself is not part of the request that opens the link browser nor the web request fetching data from the TYPO3.

@3l73
Copy link
Author

3l73 commented May 12, 2022

The issue is located within [EXT:rte_ckeditor/Resources/Public/JavaScript/RteLinkBrowser.js.

In order to get the content of the link the function getSelectedText() is in use. This function does only return text content.

Instead of function getSelectedText() the function getSelectedElement() should be used.

However, this is not an issue of this extension here, but effects it.

There are now two differnt solutions:

  1. Change the TYPO3 source code
  2. Replace the JavaScript within this extension

@3l73
Copy link
Author

3l73 commented May 12, 2022

@CybotTM This issue since there is a corresponding issue in forge:

@magicsunday
Copy link
Member

Maybe you could comment at the TYPO3 bug tracker in order to push the processing of the issue? Currently there seems no progress at the ticket.

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

3 participants