Skip to content

Commit

Permalink
Fix previewAdv.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudio-Emmolo committed Sep 3, 2024
1 parent b738790 commit 3a9777a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/previewAdv.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ tinymce.PluginManager.add('previewAdv', (editor, url) => {
continue
}
// === END BLACKLIST ===
console.log(paragraphs[i], pCount)

const div = editor.dom.create('div', { class: 'adv-preview', contenteditable: 'false' })
div.style.backgroundColor = '#f3f3f3'
Expand All @@ -107,7 +108,7 @@ tinymce.PluginManager.add('previewAdv', (editor, url) => {
div.style.textAlign = 'center'
div.style.margin = '10px 0'
div.innerHTML = 'Spazio riservato per la pubblicità'
editor.dom.insertAfter(div, paragraphs[i])
paragraphs[i].insertBefore(div, paragraphs[i].firstChild)
advCount++
}

Expand Down

0 comments on commit 3a9777a

Please sign in to comment.