tech: updated tinymce to 7.1.1

This commit is contained in:
Florian Sylvain
2024-05-22 14:44:55 +02:00
parent adcd6fc08a
commit bfc310aeab
111 changed files with 743 additions and 316 deletions
@@ -13,13 +13,15 @@
<label for="postBody">Edition</label>
</div>
{{ if .Alert.Message }}
<div class="alert {{ if .Alert.IsError }} alert-danger {{ else }} alert-success {{ end }} alert-dismissible" role="alert">
<div class="alert {{ if .Alert.IsError }} alert-danger {{ else }} alert-success {{ end }} alert-dismissible"
role="alert">
{{ .Alert.Message }}
<button type="button" class="btn-close" aria-label="Close" data-bs-dismiss="alert"></button>
</div>
{{ end }}
<div class="d-flex justify-content-center align-items-center">
<button class="btn btn-success d-flex justify-content-center align-items-center gap-1" style="fill: white;" type="submit">
<button class="btn btn-success d-flex justify-content-center align-items-center gap-1" style="fill: white;"
type="submit">
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24">
<path d="M840-680v480q0 33-23.5 56.5T760-120H200q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h480l160 160Zm-80 34L646-760H200v560h560v-446ZM480-240q50 0 85-35t35-85q0-50-35-85t-85-35q-50 0-85 35t-35 85q0 50 35 85t85 35ZM240-560h360v-160H240v160Zm-40-86v446-560 114Z"/>
</svg>
@@ -40,6 +42,11 @@
plugins: 'image',
width: '100%',
height: '100%',
setup: function (editor) {
editor.on('init', function () {
console.log("LOADED")
});
},
images_upload_handler: (blobInfo, progress) => new Promise((resolve, reject) => {
// const xhr = new XMLHttpRequest();
// xhr.withCredentials = false;