Skip to content
This repository

Allow specifying an editor config for multiple RDF property names at once #62

Closed
flack opened this Issue June 15, 2012 · 2 comments

3 participants

flack Henri Bergius Roni Kantis
flack
flack commented June 15, 2012

Scenario: There are multiple editable properties on an HTML page. About half of them are supposed to accept only plaintext (like a person's or company's name or a blog entry's title) and the other half can also accept HTML-formatted input and images (like the text of a blog post, or the biography of a person).

In the current createjs configuration format, I will have to provide an editor configuration foreach RDF property name, so f.x. one for dcterms:title, one for foaf:name and so on, which leads to much redundancy. It would be much nicer if there was a way to specify one configuration called "Plaintext" and another one called "Richtext" and assign them to the properties of your choosing.

Henri Bergius
Owner
bergie commented July 19, 2012

The current idea would be to have a setter API for the editor configurations. Something like:

jQuery('body').midgardCreate();

// Set a editor configuration set called 'foo'
jQuery('body').midgardCreate('configureEditor', 'foo', 'hallo', { ...editor options });

// Set the 'foo' editor to be used by all text properties
jQuery('body').midgardCreate('setEditorForContentType', 'text', 'foo');

// Set the 'foo' editor to be used for all 'dc:title' properties
jQuery('body').midgardCreate('setEditorForProperty', 'dc:title', 'foo');
Roni Kantis
bfr commented July 19, 2012

Perfect!
3..2..1.. implement! ;)

Henri Bergius bergie closed this in 0e1c03c July 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.