lib/wysihat-engine.rb in bcalloway-wysihat-engine-0.1.9 vs lib/wysihat-engine.rb in bcalloway-wysihat-engine-0.1.10

- old
+ new

@@ -15,10 +15,10 @@ size = options.delete("size") options["cols"], options["rows"] = size.split("x") if size && size.respond_to?(:split) if options['buttons'] == nil || options['buttons'] == :all - buttons = [:bold, :italic, :underline, :strikethrough, :justify_left, :justify_center, :justify_right, :insert_ordered_list, :insert_unordered_list, :undo, :redo, :link, :html, :image, :file] + buttons = [:bold, :italic, :underline, :strikethrough, :h1, :h2, :h3, :justify_left, :justify_center, :justify_right, :insert_ordered_list, :insert_unordered_list, :undo, :redo, :link, :html, :image, :file] end javascript = "Event.observe(window, 'load', function() {" << "wysiHatify('#{tag_id}', ['#{buttons.join('\', \'')}']);" << "});"