Skip to content

Commit

Permalink
Revert previewAdv.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudio-Emmolo committed Sep 7, 2024
1 parent 3a9777a commit b4e5218
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/previewAdv.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ 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 @@ -108,7 +107,7 @@ tinymce.PluginManager.add('previewAdv', (editor, url) => {
div.style.textAlign = 'center'
div.style.margin = '10px 0'
div.innerHTML = 'Spazio riservato per la pubblicità'
paragraphs[i].insertBefore(div, paragraphs[i].firstChild)
editor.dom.insertAfter(div, paragraphs[i])
advCount++
}

Expand Down

0 comments on commit b4e5218

Please sign in to comment.