yakovlevga / brickyeditor

WYSIWYG block editor jQuery plugin.
MIT License
115 stars 20 forks source link

Idea about new field type #34

Open adaniello opened 6 years ago

adaniello commented 6 years ago

I'ld like to add a new field type only to add some customizations to the template (for example background-color, classes for padding, margin, colors, ...). By this way, i can customize template elements, ad div container and so on.

I imagine something like that:

data-bre-field="{ 'name' : 'options', 'type' : 'fieldtype', 'values': JSON MAP NAME => TYPE + VALUES }"

Any suggestions? What's the best way to do this?

Thanks