Re: Future of TinyMCE (Mockup, Plone 5)
Dylan Jay <djay-n0pU0XVUApFWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <[email protected]> |
On 6 Nov 2013, at 9:13 pm, Rok Garbas <[email protected]> wrote: > Quoting Dylan Jay (2013-11-06 01:07:15) >> Sorry, I was very clear. >> >> What I meant was the names of the styles that appear in the drop down in tinymce. >> >> ie this kind of list. >> >> Heading|h2 >> Subheading|h3 >> Literal|pre >> Discreet|span|discreet >> Pull-quote|blockquote|pullquote >> Call-out|p|callout... >> >> >> This is something that is a choice a theme creator makes (or plugin developer) about what styles should be able to be used by a content editor. >> ie this issue https://trello.com/c/dtDsunyb/9-not-possible-to-add-custom-styles-to-tinymce-s-style-menu-when-activating-a-diazo-theme >> >> Oh, sorry also thought of usecase it would be nice to improve in plone5 tinymce. >> https://trello.com/c/4iG8SlWd/44-not-possible-to-have-different-tinymce-styles-buttons-for-different-users >> I know it contradicts the styles from theme above, and maybe its just an edge case. It is however a question I've been asked before from more than one client. >> Consider the case where you want to allow superusers to use embed tabs or red text, but not users adding ploneboard discussion items. >> >> I'm not saying we have to do this stuff for plone5, but if we're rethinking how configuration of tinymce happens, and if someone smart can work out how to make all this work togeather it would be pretty cool. >> > > aha those styles. > > well configuration (as any other is stored in p.a.registry) if we can get > diazo theme to change p.a.registry that could actually be awesome since you not > only will be able to configure tinymce but also other parts of plone. yeah I;ve considered ways to include genericsetup xml inside a theme zip and have it installed during theme activation. It's one possibility. However it might be a little messy to install and then uninstall when activating different themes. Thats why I was thinking pulling the styles directly from the currently activated theme might be cleaner? > > > -- > Rok Garbas - http://www.garbas.si ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk