Skip to content

Instantly share code, notes, and snippets.

@samclarke
samclarke / headlines.js
Last active December 23, 2015 07:39 — forked from tscolari/headlines.js
Update [h1] and [h2] BBCodes
/**
* H1 BBCode
*/
$.sceditor.command.set('h1', {
tooltip: 'Heading 1',
state: function(parent, firstBlock) {
var $firstBlock = $(firstBlock);
// < 0 is disabled
// == 0 is enabled but not active