nodebb-plugin-composer-default 10.2.10 → 10.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/static/lib/composer.js
CHANGED
|
@@ -455,7 +455,7 @@ define('composer', [
|
|
|
455
455
|
var data = {
|
|
456
456
|
topicTitle: title,
|
|
457
457
|
titleLength: title.length,
|
|
458
|
-
body: postData.body,
|
|
458
|
+
body: utils.escapeHTML(postData.body),
|
|
459
459
|
mobile: composer.bsEnvironment === 'xs' || composer.bsEnvironment === 'sm',
|
|
460
460
|
resizable: true,
|
|
461
461
|
thumb: postData.thumb,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<div component="composer" class="composer {{{ if resizable }}} resizable{{{ end }}}{{{ if !isTopicOrMain }}} reply{{{ end }}}">
|
|
2
2
|
<div class="composer-container d-flex flex-column gap-1 h-100">
|
|
3
3
|
<!-- mobile header -->
|
|
4
|
-
<nav class="navbar fixed-top mobile-navbar hidden-md hidden-lg text-bg-primary flex-nowrap gap-1">
|
|
4
|
+
<nav class="navbar fixed-top mobile-navbar hidden-md hidden-lg text-bg-primary flex-nowrap gap-1 px-1">
|
|
5
5
|
<div class="btn-group">
|
|
6
|
-
<button class="btn btn-sm btn-primary composer-discard" data-action="discard" tabindex="-1"><i class="fa fa-times"></i></button>
|
|
7
|
-
<button class="btn btn-sm btn-primary composer-minimize" data-action="minimize" tabindex="-1"><i class="fa fa-minus"></i></button>
|
|
6
|
+
<button class="btn btn-sm btn-primary composer-discard" data-action="discard" tabindex="-1"><i class="fa fa-fw fa-times"></i></button>
|
|
7
|
+
<button class="btn btn-sm btn-primary composer-minimize" data-action="minimize" tabindex="-1"><i class="fa fa-fw fa-minus"></i></button>
|
|
8
8
|
</div>
|
|
9
9
|
{{{ if isTopic }}}
|
|
10
10
|
<div class="category-name-container">
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<i class="fa fa-clock-o"></i>
|
|
19
19
|
</div>
|
|
20
20
|
<div class="btn-group">
|
|
21
|
-
<button class="btn btn-sm btn-primary composer-submit" data-action="post" tabindex="-1"><i class="fa fa-chevron-right"></i></button>
|
|
21
|
+
<button class="btn btn-sm btn-primary composer-submit" data-action="post" tabindex="-1"><i class="fa fa-fw fa-chevron-right"></i></button>
|
|
22
22
|
</div>
|
|
23
23
|
</nav>
|
|
24
24
|
<div class="p-2 d-flex flex-column gap-1 h-100">
|