Sha256: cb84f73d3a1f611521e2b97100234830034369f181867ab3a24bc9d5d7872a6a
Contents?: true
Size: 656 Bytes
Versions: 1
Compression:
Stored size: 656 Bytes
Contents
class Heading extends Row type: "heading" name: "Heading" initial_content: "<h1>Heading</h1>" options: ["H1", "H2", "H3", "H4", "H5", "H6"] icons: "H1": "/assets/text_heading_1.png" "H2": "/assets/text_heading_2.png" "H3": "/assets/text_heading_3.png" "H4": "/assets/text_heading_4.png" "H5": "/assets/text_heading_5.png" "H6": "/assets/text_heading_6.png" on_option: (row, option) -> text = $(row).find(".__ledge_row_content").children().text() text = "Heading" if text == "" $(row).find(".__ledge_row_content").html("<#{option}>#{text}</#{option}>") Ledge::update_textarea() window.Heading = Heading
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ledge-0.2.0 | app/assets/javascripts/ledge/rows/heading.coffee |