We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbae53b commit 521e288Copy full SHA for 521e288
feincms/templates/admin/content/richtext/init_tinymce7.html
@@ -6,7 +6,7 @@
6
<script>
7
(() => {
8
const init = (field) => {
9
- if (!field.dataset.initialized) {
+ if (!field.hasAttribute("data-initialized")) {
10
tinymce.init({
11
selector: `#${field.id}`,
12
menubar: false,
@@ -15,13 +15,13 @@
15
autoresize_bottom_margin: 20,
16
toolbar: "styles | bold italic sub sup | bullist numlist | anchor link unlink",
17
})
18
- field.dataset.initialized = true
+ field.setAttribute("data-initialized", true)
19
}
20
21
22
const destroy = (field) => {
23
tinymce.remove(`#${field.id}`)
24
+ field.removeAttribute("data-initialized")
25
26
27
const selector = "textarea.item-richtext"
0 commit comments