Skip to content

Commit 5e57281

Browse files
Merge pull request #35 from The-3Labs-Team/revert-previewAdv
Revert previewAdv.js
2 parents 3a9777a + b4e5218 commit 5e57281

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/previewAdv.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ tinymce.PluginManager.add('previewAdv', (editor, url) => {
9898
continue
9999
}
100100
// === END BLACKLIST ===
101-
console.log(paragraphs[i], pCount)
102101

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

0 commit comments

Comments
 (0)