karthick2014 / jwysiwyg

Automatically exported from code.google.com/p/jwysiwyg
0 stars 0 forks source link

Change font in editor #39

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It's not an issue, but question:
How I can change font in editor's iframe?
For example, I want Verdana instead of Times New Roman.
Thank you for help.

Original issue reported on code.google.com by frez...@gmail.com on 31 Jul 2008 at 9:51

GoogleCodeExporter commented 8 years ago
you can pass custom css to .jwysiwyg function:

$("#body").wysiwyg({ css : { fontFamily : 'Verdana', fontSize : '12px' } );

Original comment by glum...@gmail.com on 4 Aug 2008 at 8:42

GoogleCodeExporter commented 8 years ago
It's work. Thank you, glum.ua.

Original comment by frez...@gmail.com on 4 Aug 2008 at 11:17

GoogleCodeExporter commented 8 years ago
It's my idea or it's missing a bracket? It's not working for me:

$(function()
        {
            $('#post-description').wysiwyg({
                controls : {
                      separator04 : { visible : true },

                      insertOrderedList : { visible : true },
                      insertUnorderedList : { visible : true }
                 }  
            });
            $("#body").wysiwyg({ 
                css : { 
                    fontFamily : 'Verdana', 
                    fontSize : '18px' ,
                    color: '#fff'
                }
            });
        });

What I'm doing wrong?

Original comment by chhuang...@gmail.com on 9 Aug 2008 at 5:24

GoogleCodeExporter commented 8 years ago
Work fine!

Original comment by joksnet on 26 Sep 2008 at 1:11

Attachments: