taoguan / jwysiwyg

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

Customize buttons #82

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I want to only show the bold, h1, h2, h3 buttons. How can I hide the font
size and other buttons for keeping formating right?

Original issue reported on code.google.com by davi...@gmail.com on 11 Feb 2009 at 9:05

GoogleCodeExporter commented 8 years ago
+1 for this request - lovely to stop users who don't know how, adding cruft 
markup by
accident.

Original comment by alan.c.b...@gmail.com on 12 Feb 2009 at 4:24

GoogleCodeExporter commented 8 years ago
In the .js file you can scroll down to line 179 (or search the file for 
TOOLBAR) and
you will see a section that shows all the options for the toolbar.  There is a
variable called "visible" for each button that you can set to either true or 
false
and it will customize the bar to your liking.

Original comment by halgatew...@gmail.com on 18 Mar 2009 at 2:06

GoogleCodeExporter commented 8 years ago
You can change it from the options param:

$('#wysiwyg').wysiwyg({
    controls : {
        separator05 : { visible : false },
        createLink  : { visible : false },
        insertImage : { visible : false }
    }
});

Original comment by joksnet on 21 Apr 2009 at 12:24

GoogleCodeExporter commented 8 years ago
I was just working on this last night for Drupal Wysiwyg API. Patch for that 
module
forthcoming.

http://vvcap.net/db/VI0qv6ia_XEa-e1pDjIy.htm

Original comment by jemo...@gmail.com on 21 Apr 2009 at 4:26

GoogleCodeExporter commented 8 years ago
And screenshot of jWYIWYG accepting custom button selections.

http://vvcap.net/db/8FfX1e8MiOghwcM4kPpy.htm

Original comment by jemo...@gmail.com on 21 Apr 2009 at 4:30

GoogleCodeExporter commented 8 years ago

I've got a question. How can I add a my own custom controls to the toolbar and 
make
them work? 

Thanks.

Original comment by dmagya...@gmail.com on 30 Sep 2009 at 11:33