Back to top anchor
Documentation

Sector text format configuration

We are updating our documentation library to be ready for Sector 10! Find out more in our Sector 10 roadmap or head straight to our collection of Sector 10 - Changes and Updates.

User role
Drupal Sitebuilder
Task
Sitebuilding Backend
Topic
Text formats, editors, and styles User roles and permissions
Product
Sector Starter kit

Drupal text formats provide additional security and filters for your text content. The Sector text format configuration adjusts the existing Drupal text formats and adds additional formats to cater for common use cases. 

Drupal text formats add: 

  • Additional security - Text formats filter unwanted, or potentially insecure, code or script entered in text fields. 
  • Additional sanitation - Text formats use filters to ensure that markup is clean and follows common standards. 
  • Granular permissions in content authoring - Text formats are hooked into Drupal permissions, allowing you to manage which user roles can use which format. 

Read more in the Drupal User Guide - Concept: Text Formats and Editors

Since Drupal 8, the CKEditor is core and the WYSIWYG profiles are part of the Sector text format configuration.

The Content Administrator and Content Editor user roles are part of the Sector Starter Kit user configuration.

Preconfigured Drupal Text Formats 

<your-domain>/admin/config/content/formats 

Format Sector 8/9 Sector 10 Use cases Enabled Roles
Basic HTML (core) x x Used by all editorial staff, mostly in body content.  Drupal Sitebuilder (site architects and developers only), Content Administrator, Content Editor
Restricted Basic HTML (Sector) x x Used by all editorial staff for text fields that have restricted style options.   Drupal Sitebuilder (site architects and developers only), Content Administrator, Content Editor
Restricted HTML (core) x x New format in D8 targeted for user generated content* (restricted by security requirements) Not in use for Sector. Can be configured to be site-specific.
Full HTML (no longer core in D10) x Under review Used by advanced editorial staff to allow custom HTML, CSS, and Javascript.  Drupal Sitebuilder (site architects and developers only), Content Administrator
Teaser display text (Sector) x Under review Used by sitebuilders to manage teaser text displays. Can also be used as a 'fall-back' text format for text fields that do not use an editor.  Drupal Sitebuilder (site architects and developers only), Content Administrator, Content Editor
Plain text (core) x Under review Text format for plain text fields.  All roles may use this format
Raw HTML  x Under review New in Sector D8 (first in 8.x-2.0-alpha3). To allow sitebuilders to add HTML code to Display Suit fields without CK editor 'interference' (all filters deactivated).  Drupal Sitebuilder (site architects and developers only) 

* Read more in the related discussions on Drupal.org:
https://www.drupal.org/node/2563781
https://www.drupal.org/node/1941642

Text format

Last updated

Sector 10 is coming!

Find out more in our Sector 10 roadmap.

Need Help?

Sector is brought to you by Sparks Interactive - supporting Sector from Wellington and Auckland

Open Source award winner!

Sparks Interactive are delighted to accept the Open Source Use in Business award for Sector and the Sector.nz open source platform.

Subscribe for Sector updates