From 022d0c36258c874a21a36e207ae89aa8d91e44a1 Mon Sep 17 00:00:00 2001 From: polo Date: Sun, 6 Apr 2025 13:02:26 +0200 Subject: clone du squelette pour le garder intact --- public/js/tinymce.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public/js/tinymce.js') diff --git a/public/js/tinymce.js b/public/js/tinymce.js index cb1938a..1e40f51 100644 --- a/public/js/tinymce.js +++ b/public/js/tinymce.js @@ -250,7 +250,7 @@ function submitArticle(id, page = '', clone = null) { submit_btn.querySelector('button').setAttribute('onclick', "submitArticle('" + data.article_id + "')"); var next_div = parent.nextElementSibling.nextElementSibling; - parent.parentNode.replaceChild(clone, parent); + parent.parentNode.replaceChild(clone.cloneNode(true), parent); // clone du squelette pour le garder intact next_div.appendChild(parent); } else{ -- cgit v1.2.3