megabulk
Member
Posted 2 years ago #
I'd managed to set the paragraph margin for the p tag in the TinyMCE editor to 0px, in order to provide more of a WYSIWYG preview for my site, but now that I've upgraded I can't find that CSS selector. It used to be at "wp-includes/js/tinymce/wordpress.css" but now it ain't. Any suggestions?
Thanks!
megabulk
Member
Posted 2 years ago #
Found it. It's at "wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css"
megabulk
Member
Posted 2 years ago #
OK, responding to my own post here, 5 months later. I still want to override the default p style in the CSS for the TinyMCE editor, but to do so in a way that won't break if I update WordPress. Hacking the wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css file seems like the wrong way to go about that, because it may be overwritten by an update. Any suggestions as to the RIGHT way to go about this?
Thanks!
Hook your own stylesheet onto the administration section? Or just particular pages where the tinymce is present...
Is this just for when typing posts and pages?
megabulk
Member
Posted 2 years ago #
Yes, it's just when typing posts and pages: my site's theme uses a margin of 0px for the paragraphs, and I'd like TinyMCE to match that.
When you say "Hook your own stylesheet onto the administration section," are you talking about editing the wp-admin.css file, as described here:
http://codex.wordpress.org/Creating_Admin_Themes#Styling_The_Admin_Theme
?
If so, is that really the right way to do it? I don't want my changes to get overwritten when I update WordPress.
And, any idea as to the CSS selectors to select the paragraphs within the TinyMCE editor? The CSS in wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css seems to select the content of the editor, but I don't quite understand how it works...
Ay yi yi!
Just so we're clear, you're wanting to apply styling when at either..
wp-admin/edit.php
or
wp-admin/edit-pages.php
Is that correct?...
You can hook CSS to those pages specifically, if that's what you're after i'll show you how.