PHPackages                             pauloamgomes/cockpit-editorformats - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pauloamgomes/cockpit-editorformats

AbandonedArchivedCockpit-module[Utility &amp; Helpers](/categories/utility)

pauloamgomes/cockpit-editorformats
==================================

Cockpit CMS addon that extends core functionality by introducing the possibility to define editor format modes to the WYSIWYG field (based on tinymce editor).

12195[1 issues](https://github.com/pauloamgomes/CockpitCms-EditorFormats/issues)Hack

Since Dec 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/pauloamgomes/CockpitCms-EditorFormats)[ Packagist](https://packagist.org/packages/pauloamgomes/cockpit-editorformats)[ RSS](/packages/pauloamgomes-cockpit-editorformats/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

WYSIWYG Editor Formats
======================

[](#wysiwyg-editor-formats)

This addon extends Cockpit CMS core functionality by introducing the possibility to define editor format modes to the WYSIWYG field (based on tinymce editor). When configuring a WYSIWYG field, cockpit already provides the possiblity to extend the default settings on the field definition:

```
{
  "editor": {
    "height": 500,
    "menubar": "edit insert view format",
    "plugins": [
        "link lists preview hr anchor",
        "code fullscreen",
    ]
  }
}
```

that is quite interesting, but can be painful and confusing when dealing with many fields, so that's where this addon can help, you just need to configure your formats (e.g. Basic, Advanced, etc..) and use the format name on your field instead of the configuration:

```
{
  "editor": {
    "format": "Basic",
  }
}
```

Installation
------------

[](#installation)

1. Confirm that you have Cockpit CMS (Next branch) installed and working.
2. Download zip and extract to 'your-cockpit-docroot/addons' (e.g. cockpitcms/addons/EditorFormats)
3. Access module settings () and confirm that page loads.

Configuration
-------------

[](#configuration)

The Addon doesn't require any extra configuration. When enabled, it will be available to the admin with all features.

### Permissions

[](#permissions)

There are two permissions

- manage - that can be used to manage the formats
- access - is used to use the editor, if you are using the editor as non admin user you need to add that permission

example of configuration:

```
groups:
  manager:
    editorformats:
      manage: true
      access: true
  editor:
    editorformats:
      access: true
```

Usage
-----

[](#usage)

Create the formats you need, in most of the cases you only need a Basic format with minimum features:

[![Basic Format](https://camo.githubusercontent.com/bc18d18c43f7165707171154d9b2e0bd6580c6bb33e9572a70cad342b7d11a75/68747470733a2f2f6d6f6e6f736e61702e636f6d2f696d6167652f41394b32794d306d505446334f62625967467631426f59485777615a34452e706e67)](https://camo.githubusercontent.com/bc18d18c43f7165707171154d9b2e0bd6580c6bb33e9572a70cad342b7d11a75/68747470733a2f2f6d6f6e6f736e61702e636f6d2f696d6167652f41394b32794d306d505446334f62625967467631426f59485777615a34452e706e67)

Edit your YYSIWYG fields and set the format:

```
{
  "editor": {
    "format": "Basic",
  }
}
```

And when editing a collection that is using that field your editor should look like below:

[![Basic format example](https://camo.githubusercontent.com/6c7bae5bb8d802e6d89852ca974c41382426f9edebc65000a1966f95e201507a/68747470733a2f2f6d6f6e6f736e61702e636f6d2f696d6167652f784a30556967694672334672696c5158344367576f667578545569646f702e706e67)](https://camo.githubusercontent.com/6c7bae5bb8d802e6d89852ca974c41382426f9edebc65000a1966f95e201507a/68747470733a2f2f6d6f6e6f736e61702e636f6d2f696d6167652f784a30556967694672334672696c5158344367576f667578545569646f702e706e67)

However if you need more features from the editor create a new format (e.g. Advanced):

[![Advanced Format](https://camo.githubusercontent.com/76cbb199f1432a28fd7e5bd5b17dd43f918d2508debe48e6984b54cd62deb768/68747470733a2f2f6d6f6e6f736e61702e636f6d2f696d6167652f4276364770525168486a634a35447948616d574d31344c4a4975703468672e706e67)](https://camo.githubusercontent.com/76cbb199f1432a28fd7e5bd5b17dd43f918d2508debe48e6984b54cd62deb768/68747470733a2f2f6d6f6e6f736e61702e636f6d2f696d6167652f4276364770525168486a634a35447948616d574d31344c4a4975703468672e706e67)

Edit your YYSIWYG fields and set the format:

```
{
  "editor": {
    "format": "Advanced",
  }
}
```

And when editing a collection that is using that field your editor should look like below:

[![Advanced format example](https://camo.githubusercontent.com/700256a41ad1a59a06836bbf9aecf7d5fc87d189eb908fa5b661650662282a43/68747470733a2f2f6d6f6e6f736e61702e636f6d2f696d6167652f7835444b4333797046325973346d415933356751666836456f6d4f3066642e706e67)](https://camo.githubusercontent.com/700256a41ad1a59a06836bbf9aecf7d5fc87d189eb908fa5b661650662282a43/68747470733a2f2f6d6f6e6f736e61702e636f6d2f696d6167652f7835444b4333797046325973346d415933356751666836456f6d4f3066642e706e67)

Demo
----

[](#demo)

[![Addon screencast](https://camo.githubusercontent.com/e292e02eb6e74dde3e60b1815302eb4a7f65ed5ea49ed6bbe6cb31cb0b913eb4/687474703a2f2f696d672e796f75747562652e636f6d2f76692f5a4b78384b7a74674349452f302e6a7067)](http://www.youtube.com/watch?v=ZKx8KztgCIE "WYSIWYG Editor Formats")

Copyright and license
---------------------

[](#copyright-and-license)

Copyright 2018 pauloamgomes under the MIT license.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 62.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e5d76b00c52f0e92746848bda311bf68308c6ecfb1207871504c9814cde6d9b5?d=identicon)[pauloamgomes](/maintainers/pauloamgomes)

---

Top Contributors

[![pauloamgomes](https://avatars.githubusercontent.com/u/102261?v=4)](https://github.com/pauloamgomes "pauloamgomes (10 commits)")[![raffaelj](https://avatars.githubusercontent.com/u/13042193?v=4)](https://github.com/raffaelj "raffaelj (5 commits)")[![arashsc](https://avatars.githubusercontent.com/u/11713877?v=4)](https://github.com/arashsc "arashsc (1 commits)")

---

Tags

cockpit-cmscockpit-cms-addon

### Embed Badge

![Health badge](/badges/pauloamgomes-cockpit-editorformats/health.svg)

```
[![Health](https://phpackages.com/badges/pauloamgomes-cockpit-editorformats/health.svg)](https://phpackages.com/packages/pauloamgomes-cockpit-editorformats)
```

###  Alternatives

[fogs/tagging-bundle

Tag any entity in your Symfony2 project.

113.5k](/packages/fogs-tagging-bundle)[noerd/noerd

101.4k6](/packages/noerd-noerd)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
