Ticket #13588 (confirmed Bug)
TinyMCE only recognizes internal links when -Link using UIDs- is selected
Reported by: | AbimAbam | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 4.x |
Component: | Visual Editor | Version: | 4.3 |
Keywords: | link, uid | Cc: |
Description
A Link added via TinyMCE - Link - Internal is not recognized as internal link when "Link using UIDs" is not set in tinymce-controlpanel.
It is embedded using the full link when the page is accessed via different domain-name, protocol (https/http) etc. and creates an external-link to domain/protocol used when editing.
Maybe related to #13576
Temporary solution: Select "Link using UIDs" in tinymce-controlpanel. Recreate created links
Change History
comment:1 Changed 3 years ago by kleist
- Keywords link, uid added; internal-link removed
- Status changed from new to confirmed
- Component changed from Unknown to Visual Editor
comment:2 Changed 2 years ago by jdeluca
This has been making me a little crazy so I appreciate the workaround.
The html code in TinyMCE shows a relative link (e.g. ../../some-page). But we kept getting links to https even when the page is being served up via http. Not sure if it will help troubleshooting, but I found that if I remove the class="internal-link" from the a tag, it corrects the issue.
Plone 4.3 - TinyMCE 1.3.5
comment:3 Changed 21 months ago by par117
I have run into this issue as well (Plone 4.3.3 - TinyMCE 1.3.5 and 1.4.0). I have found an additional two workarounds instead of activating "Link using UIDs".
- After saving the object, edit it and save it again.
- After inserting the link, click the "View as HTML" button and then click the "Update" button in the HTML dialog.
It appears as though there is a URL normalizing function that is called when the content is initially put into the TinyMCE editor and when the content is updated via the "View as HTML" feature, but this function is not being called after inserting an internal link. I don't have an un-obfuscated copy of the javascript to verify this for sure.