add a font/color dropdown

Jun 17, 2010 at 10:16 PM

hello , how do i add a font or color dropdown in jHtmlArea? really appreciate if you have sample code to share. Thanks!

Jul 7, 2010 at 2:29 AM

    $("#wysiwyg").htmlarea({
                toolbar: ["html", "|",
                        "forecolor",  // <-- Add the "forecolor" Toolbar Button
                        "|", "bold", "italic", "underline", "strikethrough", "|", "h1", "h2", "h3", "upsize", "|", "link", "unlink"] // Overrides/Specifies the Toolbar buttons to show
                });