Fixes to the quote feature. Most important changes listed below:
* FIX: Correctly attribute quotes when using Reply button
* FIX: Correctly attribute quotes when using replyAsNewTopic
* FIX: Allow quoting a quote
* FIX: Correctly mark quotes as "full"
* FIX: Don't try to create a quote if it's empty
* DEV: Remove an obsolete method `loadQuote`
It isn't used in core anymore, the only use in core has been removed over 4 years ago in 3251bcb. It's not used in any plugins in all-the-plugins and all references to it on GitHub are from outdated forks (https://github.com/search?q=%22Post.loadQuote%22&type=Code)
55 lines
1.7 KiB
Handlebars
55 lines
1.7 KiB
Handlebars
<div class='d-editor-container'>
|
|
<div class="d-editor-textarea-wrapper {{if disabled "disabled"}}">
|
|
<div class='d-editor-button-bar'>
|
|
{{#each toolbar.groups as |group|}}
|
|
{{#each group.buttons as |b|}}
|
|
{{#if b.popupMenu}}
|
|
{{toolbar-popup-menu-options
|
|
content=popupMenuOptions
|
|
onChange=onPopupMenuAction
|
|
onOpen=(action b.action b)
|
|
class=b.className
|
|
options=(hash
|
|
popupTitle=b.title
|
|
icon=b.icon
|
|
)
|
|
}}
|
|
{{else}}
|
|
{{d-button
|
|
action=b.action
|
|
type="button"
|
|
actionParam=b
|
|
translatedTitle=b.title
|
|
label=b.label
|
|
icon=b.icon
|
|
class=b.className}}
|
|
{{/if}}
|
|
{{/each}}
|
|
|
|
{{#unless group.lastGroup}}
|
|
<div class='d-editor-spacer'></div>
|
|
{{/unless}}
|
|
{{/each}}
|
|
</div>
|
|
|
|
{{conditional-loading-spinner condition=loading}}
|
|
{{textarea
|
|
autocomplete="discourse"
|
|
tabindex=tabindex
|
|
value=value
|
|
class="d-editor-input"
|
|
placeholder=placeholderTranslated
|
|
disabled=disabled
|
|
input=change}}
|
|
{{popup-input-tip validation=validation}}
|
|
{{plugin-outlet name="after-d-editor" tagName="" args=outletArgs}}
|
|
</div>
|
|
|
|
<div class="d-editor-preview-wrapper {{if forcePreview 'force-preview'}}">
|
|
<div class="d-editor-preview">{{html-safe preview}}</div>
|
|
{{plugin-outlet name="editor-preview" classNames="d-editor-plugin" args=outletArgs}}
|
|
</div>
|
|
</div>
|
|
|
|
{{emoji-picker active=emojiPickerIsActive isEditorFocused=isEditorFocused emojiSelected=(action 'emojiSelected')}}
|