Hi,
There are several ways to define editors to be used:
* By property types (requires type definitions to be present)
* By property names
* By default
Default editors are the easiest option, as then you can just configure
a single editor to be used for almost all the properties. For examples
of this, check out:
https://github.com/bergie/create/blob/master/examples/example-aloha.html
https://github.com/bergie/create/blob/master/examples/example-redactor.html
For example, to use Redactor instead of Hallo as the default WYSIWYG
editor, you'd need to:
jQuery('body').midgardCreate('configureEditor', 'redactor',
'redactorWidget', {});
jQuery('body').midgardCreate('setEditorForProperty', 'default', 'redactor');
You can then configure additional exceptions, like using plain
contentEditables for titles:
jQuery('body').midgardCreate('configureEditor', 'simple', 'editWidget', {});
jQuery('body').midgardCreate('setEditorForProperty',
'dcterms:title', 'simple');
As you can see, this case uses property name for matching the right
editor, so no type definition is needed.
/Henri
--
Henri Bergius
Motorcycle Adventures and Free Software
http://bergie.iki.fi/
Jabber:
henri....@gmail.com
Microblogs: @bergie