PHPackages                             nathancox/customhtmleditorfield - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. nathancox/customhtmleditorfield

ActiveSilverstripe-module[Templating &amp; Views](/categories/templating)

nathancox/customhtmleditorfield
===============================

Allows per-editor TinyMCE configurations and body classes in SilverStripe

1.1.0(8y ago)168.7k8[1 PRs](https://github.com/nathancox/silverstripe-customhtmleditorfield/pulls)BSD-3-ClausePHP

Since Oct 23Pushed 8y ago5 watchersCompare

[ Source](https://github.com/nathancox/silverstripe-customhtmleditorfield)[ Packagist](https://packagist.org/packages/nathancox/customhtmleditorfield)[ RSS](/packages/nathancox-customhtmleditorfield/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

SilverStripe 3 Custom HTMLEditorField
=====================================

[](#silverstripe-3-custom-htmleditorfield)

Overview
--------

[](#overview)

This module adds two features to HTMLEditorField in SilverStripe 3:

1. it allows you to set a custom body class on each editor field (for styling the content differently)
2. it allows you to assign different HTMLEditorConfigs to each HTMLEditorField (eg to have different toolbars)

Maintainer Contacts
-------------------

[](#maintainer-contacts)

- Nathan Cox ()

Requirements
------------

[](#requirements)

- SilverStripe 3.3+

Installation Instructions
-------------------------

[](#installation-instructions)

1. Place the files in a directory called customhtmleditorfield in the root of your SilverStripe installation. You can most easily do this with `composer require nathancox/customhtmleditorfield`
2. Visit yoursite.com/dev/build to rebuild the database

Documentation
-------------

[](#documentation)

Example code:

```
