harmonycms / extension-bundle

This bundle provide an extension management system for HarmonyCMS.
0 stars 0 forks source link

Add missing supported feature of components #2

Open emulienfou opened 5 years ago

emulienfou commented 5 years ago

Whats define a component:

In HarmonyCMS, a component can be used with plugins, modules or standalone. A component can be by example a WYSIWYG who will replace a textarea element.

A component is defined by:

Example here: https://github.com/FriendsOfSymfony/FOSCKEditorBundle

emulienfou commented 5 years ago

How I saw what have to be done.

  1. FormType: HarmonyComponentType

    • type: wysiwyg # get setting value to find the default component of type wysiwyg
    • defaultType: TextareaType # default type if not component founded
  2. TwigExtension:

    • getComponent
    • getComponentCSS
    • getComponentJS