mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:19:27 +08:00
FIX: Add .cooked class to composer preview
This should make any custom styling apply to both the rendered posts and the composer equally, as long as a .topic-body parent or a #wmd-preview parent is not specified.
This commit is contained in:
parent
dac4ed5a1e
commit
824dadbc1b
|
@ -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>
|
||||
|
|
|
@ -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}}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user