====================== Thursday, May 21, 2015 ====================== Changing the default font-size used by TinyMCE ============================================== Continued to work on :ticket:`237`. My problem is: I think I did exactly as explained under `content_css `__, but my custom css file is being ignored. In the `` section of the main HTML document I have:: This is generated by the :meth:`get_head_lines ` method of :mod:`lino.modlib.tinymce`. I created :file:`lino/modlib/tinymce/static/tinymce_content.css` as a copy of :file:`tiny_mce/themes/advanced/skins/default/content.css`, changed the ``font-size`` in the first line:: body, td, pre {color:#000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:8px;} I tested whether the development server delivers the content of that file under `/static/tinymce_content.css`. The TinyMCE editor itself works. But the default font continues to have a size of `10pt`, not `12px`. When I inspect the DOM, I see that the editor is rendered as an iframe:: And indeed, there is no mention of the custom css file specified in my `content_css `__ option. Tilt! the explanation was that the call to ``tinyMCE.init()`` in my page source code (the one generated by :meth:`get_head_lines `) had no effect at all because TinyMCE initialization is done again by `Lino.RichTextPanel` (defined in :file:`lino/modlib/tinymce/config/tinymce/tinymce.js`, i.e. the code snippet included with the :xfile:`lino_*.js`). I can even remove the :meth:`get_head_lines ` method of :mod:`lino.modlib.tinymce`.