Closed webian closed 5 years ago
I found out that the Link Browser displays the "Remove link" option before the save because at that moment the link is in linkHandler format t3://page?uid=35
and this is the right situation.
Unluckily after the save of the page obviously the link is rendered as a frontend link /index.php?id=35
then the Link Browser, that expect a linkHandler format, can't parse the link correctly.
A solution could be to render the links in linkHandler format while in Frontend Editing mode.
Related to this issue, it happens that when we edit a text with an already saved link then an uncaught TYPO3 Exception is thrown on save:
#1460629247: No valid handlers found for type: unknown
TYPO3\CMS\Core\LinkHandling\Exception\UnknownLinkHandlerException thrown in file
typo3/sysext/core/Classes/LinkHandling/LinkService.php in line 154.
I can't reproduce the bug. Several bugs have since been corrected on the editor CKE.
Is it still relevant?
This have been solved in later version of the CKEditor and the issue can now be closed.
We still have this bug within the latest TYPO3 8.7.7 + CKEditor version if try to create an relative link with the link module. Same errormessage:
#1460629247: No valid handlers found for type: unknown
TYPO3\CMS\Core\LinkHandling\Exception\UnknownLinkHandlerException thrown in file
typo3/sysext/core/Classes/LinkHandling/LinkService.php in line 154.
@MattiasNilsson @codesource I confirm that this issue is still present. I also can't imagine how you can't reproduce this. Did you save the edit? Because the bug appears after save, when the page is reloaded.
Any news here ?
The issue is still present in 8.7.9
I have the same error, i try to save a text content element with a link inside.
Still present in 8.7.10, but it seems related to the core / CKEditor: TYPO3 crashes reproducible when trying to save this code in CKEditor.
Saving this code in a HTML content element works fine.
Still present in 8.7.12
Still present in 8.7.13
To work around this problem, I created a hook that corrects the link before saving, so that this error message no longer appears. Anyone interested? Then I create a GIST from it.
To work around this problem, I created a hook that corrects the link before saving, so that this error message no longer appears. Anyone interested? Then I create a GIST from it.
Here :-) Thanks!
@devtroll Can you provide your hook? So I have something to start with.
ping @devtroll
Here you will find the code snippet: https://bitbucket.org/snippets/scw_bihlmaier/5ezpaB
Thanks @devtroll for the workaround!
@ghost @devtroll @lorenzulrich I have spent a lot of time trying to reproduce your issue in TYPO3 8.7.24, but it really seems to be impossible.
Please check the attached gif animation. Am I repeating the steps correctly?
I am closing this ticket as no further information has been provided.
Steps to reproduce:
To remove the link the editor have to exactly select the text of the link (ending space included).
Another related weird behaviour is that, if we create another link without saving, now is possible to remove the link created in the previous steps simply using the CKEditor remove link button .
This also happens if we leave the cursor inside the link text and switch window (ALT+TAB in Windows) and come back to the frontend editing window to find that the "CKEditor remove link button" is enabled.