(q)
| 458 | // add the Header tools |
| 459 | // convenience functions so that the loop works correctly |
| 460 | var _retActiveStateFunction = function(q){ |
| 461 | return function(){ return this.$editor().queryFormatBlockState(q); }; |
| 462 | }; |
| 463 | var headerAction = function(){ |
| 464 | return this.$editor().wrapSelection("formatBlock", "<" + this.name.toUpperCase() +">"); |
| 465 | }; |