Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Docs: Fix custom-heading-elements snippet.
Browse files Browse the repository at this point in the history
  • Loading branch information
jodator committed Dec 21, 2017
1 parent b7068f2 commit 3c31685
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/_snippets/features/custom-heading-elements.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
}
</style>

<div id="snippet-custom-heading-levels">
<div id="snippet-custom-heading-elements">
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h2 class="fancy">Fancy Heading 2</h2>
Expand Down
2 changes: 1 addition & 1 deletion docs/_snippets/features/custom-heading-elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* globals ClassicEditor, console, window, document */

ClassicEditor
.create( document.querySelector( '#snippet-custom-heading-levels' ), {
.create( document.querySelector( 'snippet-custom-heading-elements' ), {
heading: {
options: [
{ model: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph' },
Expand Down
12 changes: 11 additions & 1 deletion docs/_snippets/features/custom-heading-levels.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@ ClassicEditor
options: [
{ model: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph' },
{ model: 'heading1', view: 'h1', title: 'Heading 1', class: 'ck-heading_heading1' },
{ model: 'heading2', view: 'h2', title: 'Heading 2', class: 'ck-heading_heading2' }
{ model: 'heading2', view: 'h2', title: 'Heading 2', class: 'ck-heading_heading2' },
{
model: 'heading2fancy',
view: {
name: 'h2',
class: 'fancy',
priority: 'high'
},
title: 'Heading 2 (fancy)',
class: 'ck-heading_heading2 fancy'
}
]
},
toolbar: {
Expand Down

0 comments on commit 3c31685

Please sign in to comment.