![]() ![]() You might do this to match only some of the editor styling with your page CSS, without pulling in the whole stylesheet. Just remember, when you use this option, what you see in the editor will not necessarily be what you get in your published content. Override editor styles using content_styleĪlternatively, there’s a simple way to override the editor CSS, regardless of whether it’s the default CSS or a stylesheet you’ve provided with content_css. Read more about content_css in our documentation. Screenshot of TinyMCE editor with cursive font matching website. You have the following style defined in a file called mycontent.css.Īnd - hey presto - the editor CSS matches that of your web page. Okay, let’s say your website uses white cursive text on a darker background. If you want the styles in the TinyMCE editor to match the styles on your published page, for a true WYSIWYG experience, the best option is to initialize TinyMCE with the same CSS file that your site uses.įor example, let’s say your website uses white comic sans…no.I can’t quite bring myself to use that example. Match editor styles to your published content using content_css Read on for more detailed examples of usage and information about how to change the default styling options displayed in the TinyMCE menus and toolbars. You largely want the styles in the editor to match your published content, but you want to override some of the styling used in the editor for easier use while editing.You want the styles in the editor to match those used in your published content for the full WYSIWYG experience.You want to override parts of the default CSS used by the editor, for example, so you can edit with a larger font.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |