Updated and fixed plugin to add H# tags to Tiny MCE (Original source from http://sourceforge.net/tracker/index.php?func=detail&aid=1467705&group_id=103281&atid=738747)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
img
README.md
editor_plugin.js

README.md

Plugin: Heading

Here is a Heading plugin for TinyMCE by WSL.RU This plugin adds H1-H6 buttons to TinyMCE. This plugin was developed by Andrey G and modified by ggoodd. Further modifications made by Merten van Gerven.

Version History

1.4 by Merten van Gerven

1.3

  • rewrited for TinyMCE 3.x
  • removed keyboard shortcuts (use Ctrl+1-6)

1.2 by ggoodd

  • added keyboard shortcuts
  • added heading_clear_tag option
  • removed language pack, advansed theme variables used instead

1.1 by ggoodd

  • added buttons switching
  • removed NoHeading button

1.0 by Andrey G

  • initial version

Installation

  • clone this repository to your TinyMCE plugins directory and rename to 'heading'.
  • Add plugin to TinyMCE plugin option list.
  • Add heading buttons to button list.
  • Set heading_clear_tag option if you need. Default value is undefined. This option holds formating tag which is added on heading removal.

Initialization Example

tinyMCE.init({

    theme : "advanced",
    mode : "exact",
    
    plugins : "heading",
    heading_clear_tag : "p",
    theme_advanced_buttons1_add_before : "h1,h2,h3,h4,h5,h6,separator",

});