Merge pull request #4099 from frenchcutgreenbean/master

(Update) imgbb.js
This commit is contained in:
HDVinnie
2024-08-27 23:04:51 -04:00
committed by GitHub
2 changed files with 5 additions and 4 deletions

View File

@@ -6,7 +6,7 @@
vendor: 'auto',
mode: 'auto',
lang: 'auto',
autoInsert: 'bbcode-embed-thumbnail',
autoInsert: 'bbcode-embed-full',
palette: 'default',
init: 'onload',
containerClass: 1,
@@ -131,13 +131,14 @@
);
},
getNewValue: function (t, e) {
w = e.replaceAll("[img]", "[img=350]").replaceAll("\n", " ")
var i =
'string' != typeof t.getAttribute('contenteditable')
? 'value'
: 'innerHTML',
s = 'value' == i ? '\n' : '<br>',
n = t[i],
r = e;
r = w;
if (0 == n.length) return r;
var o = '',
a = n.match(/\n+$/g),

View File

@@ -35,7 +35,7 @@ export default defineConfig({
'resources/js/unit3d/tmdb.js',
'resources/js/unit3d/parser.js',
'resources/js/unit3d/helper.js',
'resources/js/unit3d/imgbb.js',
'resources/js/vendor/imgbb.js',
'resources/js/vendor/virtual-select.js',
],
dest: 'unit3d'
@@ -56,4 +56,4 @@ export default defineConfig({
vue: 'vue/dist/vue.esm.js',
}
}
});
});