Glossary Item Box

Squirrelcart v6.1.0

Rich Text Editor

Overview

The Rich Text Editor allows you to easily add HTML to Product and Category descriptions, as well as other fields in Squirrelcart's control panel. It does not require experience with HTML, and allows you to work in a similar manner as you do in a word processor.

When this feature is enabled, it will turn your description fields from this:

to this!:

Enabling and Disabling

  1. Open your Store Settings page
  2. Locate the Rich Text Editor field in the Control Panel fieldset
  3. To enable the Rich Text Editor, check the field. To disable it, uncheck it.
  4. Click Save Changes 

 

Viewing Source Code

If you wish to view the HTML code controlling what you see in the editor's design view, click the Source button in the editor's toolbar. To switch back, click the same button again.

PHP Code in Rich Text Editor Fields

Some fields in your control panel that make use of the rich text editor also support PHP code inside those fields. To prevent the editor from hiding that code and making it possible for you to accidentally delete it, all PHP code blocks that come built into these fields are surrounded by special brackets to make them visible in Squirrelcart. For example, this is what you will see when viewing the built in New Products Content record when the Rich Text Editor is enabled:

 

    [php/]

 

If you see this text inside an editor field, it is a placeholder for content that will be shown via PHP. You should not delete these PHP code sections or you may get unexpected results. If you were to click the Source button in the editor to view the source code for the same field, you would see this:

[php<?php print sc_new_products_content() ?>/]

In this view, you can see that the [php/] text shown in design view actually contains PHP code inside it that is only visible in code view.

Further Documentation

You can find documentation for using CKEditor on their website.

 

 


© 2001-2017 Lighthouse Development. All Rights Reserved.