This article explains how to insert and edit HTML code using CKEditor.
What's inside this article:
Follow these steps to insert HTML code into CKEditor:
- Click the Source Code View icon.
- Add or edit the HTML code in the HTML code box.
- Click Apply.
If CKEditor does not find forbidden elements or attributes, the Source Code View dialog closes and the code is rendered on the main edit screen.
If you see a validation error, refer to the section below.
If CKEditor finds forbidden code, you see a validation error that lists the forbidden elements and attributes.
Follow the steps below to clean up and apply the code:
- Click Clean up the code to remove the forbidden items. In most cases, CKEditor removes just the forbidden code, with no impact on the content that is contained within the code.
- After the forbidden code is removed, click Apply again.
The code is rendered on the main edit screen.
The following articles might be helpful: