Fixed Insert button for uploads inserting with the wrong markup format if the setting was changed after upload.
This commit is contained in:
parent
8038f61470
commit
5d602bd56f
1 changed files with 15 additions and 15 deletions
|
@ -149,6 +149,11 @@ Misuzu.Forum.Editor.init = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
uploadTask.onComplete = function(fileInfo) {
|
uploadTask.onComplete = function(fileInfo) {
|
||||||
|
uploadElem.classList.add('eeprom-widget-file-done');
|
||||||
|
uploadElemName.href = fileInfo.url;
|
||||||
|
uploadElemProgressText.textContent = '';
|
||||||
|
|
||||||
|
const insertTheLinkIntoTheBoxEx2 = function() {
|
||||||
const parserMode = parseInt(postingParser.value);
|
const parserMode = parseInt(postingParser.value);
|
||||||
let insertText = location.protocol + fileInfo.url;
|
let insertText = location.protocol + fileInfo.url;
|
||||||
|
|
||||||
|
@ -164,11 +169,6 @@ Misuzu.Forum.Editor.init = function() {
|
||||||
insertText = '![](' + fileInfo.url + ')';
|
insertText = '![](' + fileInfo.url + ')';
|
||||||
}
|
}
|
||||||
|
|
||||||
uploadElem.classList.add('eeprom-widget-file-done');
|
|
||||||
uploadElemName.href = fileInfo.url;
|
|
||||||
uploadElemProgressText.textContent = '';
|
|
||||||
|
|
||||||
const insertTheLinkIntoTheBoxEx2 = function() {
|
|
||||||
$insertTags(postingText, insertText, '');
|
$insertTags(postingText, insertText, '');
|
||||||
postingText.value = postingText.value.trim();
|
postingText.value = postingText.value.trim();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue