Skip to content

Commit

Permalink
ensure example is working
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Sep 26, 2018
1 parent cabef4a commit 2c081c3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ This would render the following HTML:

```html
<h1>Hello</h1>
<p><br></p>
<p>This is the php quill <strong>parser</strong>!</p>
```

Expand Down
15 changes: 5 additions & 10 deletions output.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,12 @@
?>
<!DOCTYPE html>
<html lang="en">
<head>

<!-- Include Quill stylesheet -->
<link href="https://cdn.quilljs.com/1.0.0/quill.snow.css" rel="stylesheet">
<!-- Include the Quill library -->
<script src="https://cdn.quilljs.com/1.0.0/quill.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>
<head>
<link href="https://cdn.quilljs.com/1.0.0/quill.snow.css" rel="stylesheet">
<script src="https://cdn.quilljs.com/1.0.0/quill.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>


<form method="post" class="demo">
<input type="hidden" id="quill-editor-input" name="quill-editor-input" />
<div id="editor" style="height:100px;">
Expand Down
1 change: 1 addition & 0 deletions tests/ParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class ParserTest extends TestCase
'<blockquote>Wichtig <strong>Fett</strong></blockquote>' => '[{"insert":"Wichtig "},{"attributes":{"bold":true},"insert":"Fett"},{"attributes":{"blockquote":true},"insert":"\n"}]',
'<blockquote>Quote</blockquote>' => '[{"insert":"Quote"},{"attributes":{"blockquote":true},"insert":"\n"}]',
'<h1>Heading 1</h1>' => '[{"insert":"Heading 1"},{"attributes":{"header":1},"insert":"\n"}]',
'<h1>Hello</h1><p><br></p><p>This is the php quill <strong>parser</strong>!</p>' => '[{"insert":"Hello"},{"attributes":{"header":1},"insert":"\n"},{"insert":"\nThis is the php quill "},{"attributes":{"bold":true},"insert":"parser"},{"insert":"!\n"}]'
];

public function testHtmlIsEqual()
Expand Down

0 comments on commit 2c081c3

Please sign in to comment.