What's inside this article:
- Basic information
- Insert a link to another page
- Insert a link to an anchor on the same page
- Supported URL formats
Basic information
This article explains how to insert simple links into text content using CKEditor.
Insert a link to another page
To insert a link that points to another webpage:
- Highlight the link text.
- Hit the Insert Link icon in the CKEditor bar.
- Ensure URL is selected under Type.
- Under Full URL, enter the target URL for the link. For detailed information about supported formats, go to the following section:
- https:// is applied as the default protocol. To use a different protocol, select your preferred option under Protocol.
- Select the appropriate option under Target:
- Open link in the same window: Opens the link in the same tab. This option is recommended for links to pages from the same site.
- Open link in new window: Opens the link in a new tab. This option is recommended for links to pages from external sites.
- Hit Add to confirm the settings and insert the link.
The link is now inserted in CKEditor. To remove the link, position the cursor next to it, and select the Unlink icon.
Insert an anchor link
Follow the steps in the sections below in order:
Create an anchor
The anchor is the target for the link. To create the anchor:
- Highlight the text you want to use as the anchor, then hit the Insert Anchor icon.
- Under Anchor name, enter the name for the anchor. You will need to remember the exact Anchor name when you insert the link.
- Hit Save.
The anchor is created and marked with a red flag in CKEditor. You can now insert the link.
Insert the link
To insert a link to an anchor on the page:
- Highlight the link text, then hit the Insert Link icon.
- Select Link to anchor in the text under Type.
- Under Anchor name, enter the exact Anchor name.
- Hit Add to confirm the settings and insert the link.
The link is now inserted in CKEditor. To remove the link, position the cursor next to it, and select the Unlink icon.
Supported URL formats
When you insert a link to another page, the following conditions apply for defining the URL:
- Relative links are not supported. For example, need to enter rferl.org/Farda-English rather than just Farda-English.
- The URL cannot include spaces. Ensure there are no trailing spaces before or after the entered URL.
- You don't need to include www. in the URL (but this does not cause issues).
- You don't need to include https:// in the URL (but this does not cause issues).
- Links with non-Latin characters (such as https://ru.wikipedia.org/wiki/Заглавная_страница) are fully supported.
CMS continuously verifies the entered URL. If the URL format is unsupported, you are immediately notified.