> > There is only one problem with this method : the alinements styles are not > only avaible in the widgets, but also in the stylemenu. > With this method, is it possible to remove these options from the > stylemenu without deleting the whole stylemenu ?
I don't think so. I don't know much about that part of tinymce, but I suspect it would involve overriding something in tinymce core. And since mezzanine only includes the minified version of tinymce core, it would probably mean forking tinymce entirely. tinymezzce4 <https://github.com/AlexHill/tinymezzce4> might help with this. And also, that might be more complicated, but I think there are too many > headers possible (from h1 to h6), would it be possible to only leave h3 and > remove the other ones ? Yes, this definitely requires forking at this point. The relevant file is tinymce/classes/ui/FormatControls.js if you're curious. I wouldn't mind if it meant to delete the whole "size submenu" and add a > widget just for the h3 style, for example. I believe creating a custom tinymce plugin that does this would be the easiest solution at this point. See tinymce/plugins/example. I'm currently working on a package that makes creating custom plugins extremely easy. I plan to open source it soon. On Thu, Aug 20, 2015 at 9:40 AM, Déborah Leder <[email protected]> wrote: > There is only one problem with this method : the alinements styles are not > only avaible in the widgets, but also in the stylemenu. > With this method, is it possible to remove these options from the > stylemenu without deleting the whole stylemenu ? > > And also, that might be more complicated, but I think there are too many > headers possible (from h1 to h6), would it be possible to only leave h3 and > remove the other ones ? I wouldn't mind if it meant to delete the whole > "size submenu" and add a widget just for the h3 style, for example. > > -- > You received this message because you are subscribed to the Google Groups > "Mezzanine Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
