[Product-Developers] tinycme.xml resource types

David Glick davidglick at groundwire.org
Thu Apr 5 05:54:29 UTC 2012


On 3/21/12 12:58 PM, Sean Upton wrote:
> Okay, so I'm just moving my rant from #plone here, but here goes: is
> any one else frustrated that we have to define a tinymce.xml just to
> get resource (linkable, container) types listed for hyperlinks?
>
> Does it not seem that this could/should be better done on each type's
> respective FTI (e.g. a behavior for Dexterity types that is included
> in all the docs/boilerplate defaults -- one that opted the type into
> being linkable, and if a container, listed as such in the final
> resources considered by Products.TInyMCE)?
>
> ITinyMCEResourceTypes is an awfully crude interface anyway -- I don't
> want to get rid of it, but there needs to be some better way to get
> this config to TinyMCE without all the boilerplate of tinymce.xml.  Or
> maybe we just need linkable-by-default convention-over-configuration
> and the ability to blacklist types instead of whitelist types as
> linkable, containsobjects in control-panel?
>
> What can be done to make this better for add-on developers -- less
> boilerplate and such?  Ideas to make this less tedious welcome.  I bet
> there is a backward-compatible way to make things easier, too.  Maybe
> if some consensus emerges, I will try to implement something in
> experimental forks of Products.TinyMCE and pitch it over on
> plone-developers.
>
Seems to me that linkability should ideally be a boolean property of an 
FTI rather than a list on the TinyMCE utility. Though the latter is 
probably faster to look up, and I don't personally experience enough 
pain here to put forth effort to fix it.
David


----------		
David Glick
 Web Developer
 davidglick at groundwire.org
 206.286.1235x32

The Engagement Party 2012. So much more fun than the wedding reception.

http://www.npoengagementparty.com




More information about the Product-Developers mailing list