Support for custom HTML editors
This commit is contained in:
parent
78d262ac8d
commit
a11d95f3d7
22 changed files with 255 additions and 133 deletions
14
views/partials/html-preview.hbs
Normal file
14
views/partials/html-preview.hbs
Normal file
|
@ -0,0 +1,14 @@
|
|||
<div class="form-group" id="html-preview" {{#unless html}}style="display: none;"{{/unless}}>
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<a role="button" data-toggle="collapse" href="#html-preview-toggle" aria-expanded="false" aria-controls="html-preview-toggle">Toggle HTML preview</a>
|
||||
<div class="collapse" id="html-preview-toggle">
|
||||
<h6 class="small text-muted">320x480px</h6>
|
||||
<iframe
|
||||
id="html-preview-frame"
|
||||
srcdoc="{{#if preparedHtml}}{{preparedHtml}}{{else}}{{html}}{{/if}}"
|
||||
width="320" height="480"
|
||||
style="border: 1px solid #ccc;">
|
||||
</iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue