megabulk
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: css for p tag in tinyMCE admin broken after upgrade to 2.8Yes, 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:
https://codex.www.ads-software.com/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!
Forum: Fixing WordPress
In reply to: Changing editor font in 2.8Hey there: I’m looking to do the same thing, to edit some of the TinyMCE editor styles. Does the content.css file get overwritten when WP gets updated? If not, great. If so, is there a better way to go about this?
Thanks
Forum: Fixing WordPress
In reply to: css for p tag in tinyMCE admin broken after upgrade to 2.8OK, 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!
Forum: Fixing WordPress
In reply to: css for p tag in tinyMCE admin broken after upgrade to 2.8Found it. It’s at “wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css”
Forum: Fixing WordPress
In reply to: Can I disable a href in image tags ?I’m new to wordpress, and this is probably *not* the most acceptable way of doing this, but in /wp-admin/includes/media.php (WP version 2.5.1), you can comment out the line
$html = "<a href='".attribute_escape($url)."'$rel>$html</a>";
and that’ll prevent all future images from having HREFs added. (It won’t change any existing HREFs, however.) Hope that helps.