nodebb-plugin-composer-default 10.2.0 → 10.2.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-composer-default",
3
- "version": "10.2.0",
3
+ "version": "10.2.2",
4
4
  "description": "Default composer for NodeBB",
5
5
  "main": "library.js",
6
6
  "repository": {
@@ -18,7 +18,7 @@ define('composer/preview', ['hooks'], function (hooks) {
18
18
  preview = $('<div>' + preview + '</div>');
19
19
  preview.find('img:not(.not-responsive)').addClass('img-fluid');
20
20
  postContainer.find('.preview').html(preview);
21
- hooks.fire('action:composer.preview');
21
+ hooks.fire('action:composer.preview', { postContainer, preview });
22
22
  callback();
23
23
  });
24
24
  };
@@ -147,7 +147,7 @@ define('composer', [
147
147
  if (post.action === 'posts.reply') {
148
148
  actionText = '[[topic:composer.replying_to]]';
149
149
  } else if (post.action === 'posts.edit') {
150
- actionText = '[[topic:composer.editing]]';
150
+ actionText = '[[topic:composer.editing-in]]';
151
151
  }
152
152
 
153
153
  translator.translate(actionText, function (translatedAction) {