CKEditor can be set to accept any HTML element, attribute, style, or class. Additionally, the Source button allows users to edit raw HTML.
CKEditor 5 supports custom HTML markup and styles. Switch to the source mode to check out the HTML source of the content and play with it. See time
, abbr
, aside
and details
semantic elements as well as non-semantic tags and inline styles used to implement column layout.
See this demo live at ckeditor.com or read more about this feature in the CKEditor 5 documentation.
- Clone this repository:
git clone [email protected]:ckeditor/ckeditor5-demos.git
- Change the directory and install the dependencies:
cd ckeditor5-demos/source-code-editing && yarn
-
Open the
source-code-editing/index.js
file and update the values of theLICENSE_KEY
,CKBOX_TOKEN_URL
, andWEB_SPELL_CHECKER_LICENSE_KEY
variables. Without this, the CKBox, spell checker, and other premium features will not be enabled. -
Start the demo:
yarn dev