Skip to content

Commit 1fe5b0a

Browse files
author
shaunfreeman
committed
added H4-H6 heading support
1 parent ddea7ec commit 1fe5b0a

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.DS_Store
2-
.c9revisions
2+
.c9revisions
3+
/*.project

.settings/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/*.jsdtscope
2+
/*.eclipse.wst.jsdt.ui.superType.container
3+
/*.eclipse.wst.jsdt.ui.superType.name

src/bootstrap-wysihtml5.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
"<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h1' tabindex='-1'>" + locale.font_styles.h1 + "</a></li>" +
1414
"<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h2' tabindex='-1'>" + locale.font_styles.h2 + "</a></li>" +
1515
"<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h3' tabindex='-1'>" + locale.font_styles.h3 + "</a></li>" +
16+
"<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h4'>" + locale.font_styles.h4 + "</a></li>" +
17+
"<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h5'>" + locale.font_styles.h5 + "</a></li>" +
18+
"<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h6'>" + locale.font_styles.h6 + "</a></li>" +
1619
"</ul>" +
1720
"</li>";
1821
},
@@ -416,6 +419,9 @@
416419
"h1": {},
417420
"h2": {},
418421
"h3": {},
422+
"h4": {},
423+
"h5": {},
424+
"h6": {},
419425
"blockquote": {},
420426
"u": 1,
421427
"img": {
@@ -456,7 +462,10 @@
456462
normal: "Normal text",
457463
h1: "Heading 1",
458464
h2: "Heading 2",
459-
h3: "Heading 3"
465+
h3: "Heading 3",
466+
h4: "Heading 4",
467+
h5: "Heading 5",
468+
h6: "Heading 6"
460469
},
461470
emphasis: {
462471
bold: "Bold",

0 commit comments

Comments
 (0)