In this exercise you’ll learn how to set up the rich text editor.
Make sure you’re logged in as a user with the role that allows editing of text formats.
Go to Configuration → Content authoring → Text formats and editors.
Click the Configure link in the Operations column next to Rich text.
Review the Roles section, which allows you to configure the roles allowed to access Rich text format.
The Toolbar configuration allows you to manage editor buttons/plugins.
As a rule, give users as few buttons as possible, for as long as possible.
The CKEditor plugin settings allow you to configure some additional options, such as Embed Media.
Check the Enabled filters section.
Note that the Limit allowed HTML tags and correct faulty HTML option is selected. It’s important to keep this options enabled for increased security.
If additional HTML tags are required to be supported, update the Allowed HTML tags field with the tags that you need. Avoid whitelisting the <script> tag, since it may introduce a backdoor to malicious scripts.
The Filter processing order section allows you to arrange the execution order of filters. Avoid modifying the default order unless necessary.
Now you can test the editor out by creating a new Page.
Add some text, and then make it bold. Also try adding a list, an image and a link.
Tip: You can get some sample images at Dynamic Dummy Image Generator: http://dummyimage.com/
Click Save.
See how your page looks. Is the page being displayed as you expected?
Site editors need a CMS that’s easy to use so they can input content without HTML knowledge.
Out-of-the-box, GovCMS provides a Rich Text editor (CKEditor) for writing content.
Rich text editors ensure that content can be added quickly and easily by people who don’t have any HTML experience. Rich text editors give users the ability to add images, create links, make text formatting changes such as bold text, etc.
Text formats change how HTML tags and other text is processed and displayed on your site. Text formats are composed of a series of filters, each of which transforms text. When users create content, a text format is associated with the content, and the full, original text is stored in the database. The content is then passed through the filters in the text format before it’s displayed on the site.
The core Filter module provides text format functionality, and the GovCMS installation profile sets up Rich text and Plain text text formats. Each text format has an associated permission, so that you can allow only trusted users to use permissive text formats. This restricts untrusted users to text formats like Plain text, which filters out dangerous HTML tags.
Each text format can be associated with an editor, such as a visual WYSIWYG (What You See Is What You Get) HTML editor. The core Text Editor module provides the ability to associate editors with text formats, and to configure the editors (such as adding and removing buttons from their toolbars). The core CKEditor module provides the industry-standard editor known as CKEditor, so that it can be used to edit HTML content on your site.
In this exercise, we want to set up a new text format that allows trusted editors to input iFrames. This will let trusted users embed widgets and videos from popular sites.
Your new text format should have these properties:
Only available to Content Authors and Site Administrators
Allow a variety of regular HTML tags
Allow a video from YouTube