nodebb-plugin-markdown 12.1.1 → 12.1.3
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 +1 -1
- package/public/js/client.js +4 -4
- package/public/scss/default.scss +1 -1
package/package.json
CHANGED
package/public/js/client.js
CHANGED
|
@@ -160,10 +160,10 @@
|
|
|
160
160
|
textarea, selectionStart + 3, selectionStart + strings.list_item.length + 3
|
|
161
161
|
);
|
|
162
162
|
} else {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
)
|
|
163
|
+
const selectedText = $(textarea).val().substring(selectionStart, selectionEnd);
|
|
164
|
+
const newText = '* ' + selectedText.split('\n').join('\n* ');
|
|
165
|
+
controls.replaceSelectionInTextareaWith(textarea, newText);
|
|
166
|
+
controls.updateTextareaSelection(textarea, selectionStart, selectionEnd + (newText.length - selectedText.length))
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
169
|
|