Skip to content

Commit

Permalink
Merge pull request #245 from deanblackborough/master
Browse files Browse the repository at this point in the history
Quill v1.01.1
  • Loading branch information
deanblackborough committed Sep 11, 2017
2 parents d26225a + 734bd52 commit 4d4dc73
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 23 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@

Full changelog for Dlayer since the v1.00 release.

## v1.17:
## v1.17: 12th September 2011

* New styling table for content items, stores all defined styles, no need for a table per styling group. [Refactoring]
* Cleaned up tools, removed redundant model classes and moved around shared classes, now more apparent if they relate to content or not. [Refactoring]
* Now using Quill PHP renderer v1.01.1, enables support for lists in text areas.

## v1.16: 12th March 2017

Expand Down
3 changes: 2 additions & 1 deletion application/modules/dlayer/views/scripts/index/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@
</div>

<div class="col-md-6 col-sm-6 col-xs-12">
<h3><span class="label label-success">v1.17</span> Not yet named <small class="text-muted">(In progress)</small></h3>
<h3><span class="label label-success">v1.17</span> Quill and refactoring <small class="text-muted">(12th September 2017)</small></h3>

<ul>
<li>New styling table for content items, stores all defined styles, no need for a table per styling group. [Refactoring]</li>
<li>Cleaned up tools, removed redundant model classes and moved around shared classes, now more apparent if they relate to content or not. [Refactoring]</li>
<li>Now using Quill PHP renderer v1.01.1, enables support for lists in text areas.</li>
</ul>

<h3><span class="label label-default">v1.16</span> Horizontal rule & styling <small class="text-muted">(12th March 2017)</small></h3>
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"license": "MIT",
"homepage": "http://dlayer.com/",
"require": {
"deanblackborough/php-quill-renderer": "v0.*"
"deanblackborough/php-quill-renderer": "v1.*"
}
}
23 changes: 13 additions & 10 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
['bold', 'italic', 'underline', 'strike'],
['link'],
[{ 'script': 'sub'}, { 'script': 'super' }],
[{ 'list': 'ordered'}, { 'list': 'bullet' }],
['clean']
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
['bold', 'italic', 'underline', 'strike'],
['link'],
[{ 'script': 'sub'}, { 'script': 'super' }],
[{ 'list': 'ordered'}, { 'list': 'bullet' }],
['clean']
]
},
Expand Down
9 changes: 4 additions & 5 deletions library/Dlayer/Model/View/Page/Content/BlogPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,11 @@ public function data($site_id, $page_id, $id)
$result['date'] = date($result['format'], strtotime($bits['1']));
$result['content'] = $bits[2];

$renderer = new \DBlackborough\Quill\Renderer\Html();

if ($renderer->load($result['content']) === true) {
$result['content'] = $renderer->render();
try {
$quill = new \DBlackborough\Quill\Render($result['content'], 'HTML');
$result['content'] = $quill->render();
return $result;
} else {
} catch (\Exception $e) {
return false;
}
} else {
Expand Down
9 changes: 4 additions & 5 deletions library/Dlayer/Model/View/Page/Content/RichText.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,11 @@ public function data($site_id, $page_id, $id)
$result = $stmt->fetch();

if ($result !== false) {
$renderer = new \DBlackborough\Quill\Renderer\Html();

if ($renderer->load($result['content']) === true) {
$result['content'] = $renderer->render();
try {
$quill = new \DBlackborough\Quill\Render($result['content'], 'HTML');
$result['content'] = $quill->render();
return $result;
} else {
} catch (\Exception $e) {
return false;
}
} else {
Expand Down

0 comments on commit 4d4dc73

Please sign in to comment.