Merge pull request #2749 from riking/css-composer

FIX: Add .cooked class to composer preview
This commit is contained in:
Robin Ward 2014-09-03 16:49:42 -04:00
commit b43359da8e
2 changed files with 4 additions and 2 deletions

View File

@ -62,8 +62,9 @@
{{composer-text-area tabindex="3" value=model.reply}}
{{popupInputTip validation=view.replyValidation shownAt=view.showReplyTip}}
</div>
<div class='preview-wrapper'>
<div id='wmd-preview' {{bind-attr class="hidePreview:hidden"}}></div>
<!-- keep the classes here in sync with post.js.handlebars -->
<div class='preview-wrapper contents regular'>
<div id='wmd-preview' {{bind-attr class="hidePreview:hidden :cooked"}}></div>
</div>
<div class="composer-bottom-right">
<a href="#" {{action togglePreview}} class='toggle-preview'>{{{model.toggleText}}}</a>

View File

@ -61,6 +61,7 @@
<button {{action toggledSelectedPost this}} class="select-post">{{view.selectPostText}}</button>
</div>
<!-- keep the classes here in sync with composer.js.handlebars -->
<div {{bind-attr class="showUserReplyTab:avoid-tab view.repliesShown::bottom-round :contents :regular view.extraClass"}}>
<div class='cooked'>
{{{cooked}}}