Text Management

In this article:

Introduction

ImCMS 6 provides text and html editing feature - on-place text-editor, that can help easily change text on page.

Open Editor

In ImCMS, there are three modes of text editor: plain text, html and what-you-see-is-what-you-get editor.

There are several ways to open Text Editor :

  1. Over text editor’s label:

    • Go Edit Mode on admin panel. On each text tag in this mode you will see the pencil icon:
      ../../_images/00-TextEditor.png
    • Click on it:
      ../../_images/01-TextEditorLabel.png ../../_images/text-editor-active.png
  2. Over direct editing feature - go to /api/admin/text?meta-id={id-of-doc-here}&index={index-number-of-text}, example: http://imcms.dev.imcode.com/api/admin/text?meta-id=1001&index=1

  3. Currently, instead no, we have to use index

Editor Features

ImCMS text editor is TinyMCE v4. All information about this text editor presented on official site.

But ImCMS customize a bit this great editor and provides own features:

  • imageBrowserIcon Image Browser - this feature gives access to default ImCMS Image Editor. You can add and edit images in text

  • textHistoryIcon Text History - you can review the history of all changes for current text

  • w3cValidationIcon W3C Validation - validates current text/html

  • switchToPlainTextIcon Switch to Plain Text Editor Mode - you can switch to this mode for plain text edition, all TinyMCE features will be disabled

  • switchToHtmlIcon Switch to HTML Edit Mode - you can switch to this mode for HTML code edition, all TinyMCE features will be disabled

  • switchToEditorIcon Switch to TinyMCE Editor Mode - you can switch from text/html mode back to TinyMCE editor

  • contentFilteringPoliciesIcon HTML Content Filtering Policy - approach to filter HTML content. It has three options:

    • Restricted:

      • head, script, embed, style : tags + content between tags are removed
      • html, body, doctype : only tags are removed
      • class, style and unknown attributes are removed. Known attributes are src href rel alt align width height border cellspacing cellpadding target title etc. are kept
    • Relaxed:

      • head, script, embed, style : tags + content between tags are removed
      • html, body, doctype : only tags are removed
      • class, style and unknown attributes are kept
    • Everything Is Allowed