Use the Text Editor: Viewing the HTML Source
The Rich Text Editor (RTE) allows you to view and edit the HTML source of your text.
- Use the Page Module and select the Page from the page tree that you would like to edit.
- Either add or select a text Content Element where you would like to develop content.
- If the Content Element does not have a Header, it is a good habit to give it one now. Click on the Text tab to access the RTE.
- To delete existing text in the RTE, highlight the text. You can do this by clicking anywhere within the text and pressing Control-A to select all the text or else by clicking and dragging your mouse over the text. Then press your Delete key.
- Now, add some text to view in the HTML source view. Then click on the Toggle HTML source icon.
- Next, add an HTML tag. In our example, we'll use the <b> </b> bold tags.
- When you're finished, click on the Toggle HTML source icon to see your work in the WYSIWYG screen (What You See Is What You Get).
- Then click the Save and view document icon to view your work in the Frontend.
- Not all tags and attributes are available using the RTE and these tags will be stripped out when you save the form.
- We will add a Style Attribute to demonstrate.
- Notice that the Style Attribute has been interpreted in the RTE. The form must be saved before the extension removes unavailable tags and attributes.
- If you are adept at HTML and CSS and need to include a tag or attribute that is removed by the RTE, you can disable the RTE. Scroll down the form and put a check in the Disable Rich Text Editor field. Then save the form. You can then enter your HTML directly and all coding will be preserved.
- The style attribute was preserved because the RTE was disabled. You can re-enable the RTE by unchecking the Disable Rich Text Editor checkbox and saving the form; however, unsupported tags will be removed upon save.