Re: Future of TinyMCE (Mockup, Plone 5)

Dylan Jay <djay-n0pU0XVUApFWk0Htik3J/[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <-7496887014344031048@unknownmsgid>
On 07/11/2013, at 11:05 PM, Johannes Raggam <[email protected]> wrote:

On Mit, 2013-11-06 at 22:40 +1100, Dylan Jay wrote:

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?


I'm always creating Diazo themes in form of Python packages, as I have
more control over everything: CSS/JS resource registrations, theme
registration, etc. So no problem for tinymce.xml or registry.xml
registrations too.

Isn't that an option for you too? Or do you *need* theme ZIP, because
you want clients install their own themes?


Exactly correct.
I even gave a talk this year on why this approach will make Plone more
popular.
http://www.slideshare.net/djay/plone-the-open-source-cmsasaservice-platform









--

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

_______________________________________________

Plone-developers mailing list

Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org

https://lists.sourceforge.net/lists/listinfo/plone-developers

------------------------------------------------------------------------------
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

_______________________________________________
Plone-developers mailing list
Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/plone-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.