Skip to content

Commit 283bb8f

Browse files
committed
Merge pull request jhollingworth#233 from shaunfreeman/dev
added H4-H6 heading support
2 parents 82404ac + 1fe5b0a commit 283bb8f

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
},
@@ -420,6 +423,9 @@
420423
"h1": {},
421424
"h2": {},
422425
"h3": {},
426+
"h4": {},
427+
"h5": {},
428+
"h6": {},
423429
"blockquote": {},
424430
"u": 1,
425431
"img": {
@@ -458,7 +464,10 @@
458464
normal: "Normal text",
459465
h1: "Heading 1",
460466
h2: "Heading 2",
461-
h3: "Heading 3"
467+
h3: "Heading 3",
468+
h4: "Heading 4",
469+
h5: "Heading 5",
470+
h6: "Heading 6"
462471
},
463472
emphasis: {
464473
bold: "Bold",

0 commit comments

Comments
 (0)