The answer is simple: Styles from your theme are also applied to the TinyMCE editor. This is just how CSS works, and it means that the default styles that your theme applies to standard HTML will also apply to TinyMCE, as well as any HTML classes that the editor uses that also happen to be used by your theme.
The editor in your first screenshot is the editor loaded in the back-end of WordPress, so that’s what it looks like when WordPress’ admin styles are also applied to it. It’s never going to look exactly the same as long as your theme is loading your own styles.
The only “solution” is to use the developer tools of your browser to inspect TinyMCE’s elements and see what styles from your theme are applying to them, and then either remove them or overwrite them with styles that are closer to te WordPress admin’s.
Related Posts:
- TinyMCE: adding CSS to format dropdown
- Forcing reload of editor-style.css
- How do i use fontawesome icons in TinyMce editor?
- How to add a class to ul tags created by the WordPress editor Tinymce?
- How can I insert HTML attributes with an existing TinyMCE button?
- How to make float element in tinymce
- WordPress stripping out BR tags, need assistance
- Different css rules for TinyMCE and Gutenberg while using add_editor_style()
- Custom styles dropdown in TinyMCE editor – not working with headings
- jQuery UI styles conflicting with TinyMCE dialog
- Show class from css in format dropdown
- How to add class to an html output element in tinyMCE paragraph drop down menu
- Add WordPress Core CSS into editor-style.css
- Enqueue MCE Editor CSS in admin page
- Column order manipulation using col-lg-push and col-lg-pull in Twitter Bootstrap 3
- What does !important mean in CSS?
- How to align a to the middle (horizontally/width) of the page [duplicate]
- Animate the overflow property
- Is there a color code for transparent in HTML?
- What does auto do in margin: 0 auto?
- CSS3 Transition not working
- CSS Invalid Property Value?
- CSS how to make an element fade in and then fade out?
- How to center vertically and horizontally a div using Bootstrap?
- How to word wrap text in HTML?
- Style disabled button with CSS
- Combine :after with :hover
- How to show tags in my tumblr theme?
- HTML span align center not working?
- Adding a blurred border in CSS
- Specify multiple attribute selectors in CSS
- How to make certain text not selectable with CSS
- How do I center an SVG in a div?
- How to expand textarea width to 100% of parent (or how to expand any HTML element to 100% of parent width)?
- Is it possible to enqueue a raw CSS string directly from within a template file?
- How to dequeue a stylesheet by src, not handle?
- WordPress CSS head info – contents, expansions?
- Gutenberg Block Editor Match Admin Styles & Frontend Styles
- The correct way to include JavaScript and CSS in my WordPress Themes
- Is it possible to change the path of a css file that is registered through wp_enqueue_style()?
- Styling Custom Meta Boxes?
- Customizing wordpress to match your site theme
- Is it better to put CSS in additional CSS or in Child theme styles.css [closed]
- Adding HTML to the Header, Screws up in IE7
- Efficient way to edit WordPress themes
- Where Do I Find The Astra Default Font Family That All Text Elements Are Inheriting From? [closed]
- Getting page output HTML without request (for CriticalCSS, PurgeCSS)
- How to organize priority of plugins CSS files?
- Responsive Images Warping
- Remove margin from CSS gradient color code
- Unable to remove space between header and slider section in wordpress website
- How can I use one stylesheet for multiple sub-sites on my multi-site network?
- How do I apply/target CSS to a specific user role or roles?
- Why is this jquery / java script code not working in mobile / in devices?
- Seperate functions.php for part of site
- Internet Explorer ignore my css
- How can I remove the ::after CSS selector which is automaticaly appended to the_content()?
- Hover colour spreading out beyond submit button
- Some Text of website page on Iphone Safari become invisible
- post_class not working with css
- Adding CSS to Blog Posts?
- Where do I go to change the position of the style.css?
- Using PHP Increment and Conditional Statement to Alternate Loop Background
- wp_enqueue_media is not loading styles
- Remove a Style Tag from WP Theme
- Simple way to add custom class and ids to individual Gutenberg blocks
- Namespacing theme CSS
- cookie free subdomain and @font-face
- How to change the standard navigation menu color when using genesis [closed]
- Change class names dynamically added to html elements by wordpress
- Add classes + taxonomy terms to wp_list_pages() output
- Chat window hiding behind Twenty Eleven header
- CSS isn’t rendered on a post but just posted as text [closed]
- How would I create the same popup in css and javascript as the one in contact button on the site https://www.sublimotionibiza.com/es/main.html [closed]
- How to use css only H2 Tag? Site is considering website title also H2 tag and changing its style as well
- How to edit CSS style sheet after migrating from local
- WordPress footer always at the bottom of the screen-page
- Dequeing Parent Fontawesome Deques Parent Styles
- How to make jquery slider to start afresh [closed]
- Custom CSS based on the Author of a Post
- How to properly hide the div of an inline collapsible button?
- How to remove padding from left&right side
- How can we create our own formatting style?
- links format change “on clic”
- Is it better to add to style.css or create your own css when using a template?
- Hide Login Page Labels
- The placeholder text doesnt disappear
- Theme stylesheet not called properly on cloned website
- Content alignment in Twenty Fourteen Theme
- Extending site width according to the image size
- Animate.CSS with a child theme
- a slider menu is compromised in space
- Change Twenty twelve theme background color
- How to change header from full-width to box width
- Installing non-standard fonts [closed]
- Change sidebar product category text color (woocommerce) [closed]
- Suddenly, all links in #content div are not clickable, but I don’t see any z-index bug? [closed]
- Bullet points not showing in wordpress
- IOS Ventura Safari 16.3 position fixed elements goes above scroll bar
- Elementor Contact Form Submit button has empty class