[Résolu] Styling of WYSIWYG buttons in CRED post editor form
This support ticket is created Il y a 6 années et 3 mois. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I have created a basic wiki system for members of a site to be able to edit some common pages.
This uses a CRED form to edit the post body of a custom post type.
The function works perfectly, but the styling of the WYSIWYG buttons is bugging me.
The TEXT (code view) buttons look good, taking their style from the theme.
But in Visual edit mode, the buttons seem to use part of the mce editor style, so they look weird.
The test page I have created is here: hidden link
(But the content is only available to logged in users. I can provide login details)
The WYSIWYG editor inserted by the CRED form is the same tinymce editor inserted by WP in the admin post editor.
I can see that the styles on the Visual tab and the Text tab use different selectors which may account for why your theme overrides the styles of one but not the other, which I suspect is largely a question of luck and may depend on the theme.
I'm afraid I don't see any alternative to identifying the problematic styles on the Visual editor buttons and overriding them with your own styles added in the custom CSS section of your form.