Skip to content

Commit

Permalink
Merge branch 'main' into 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkaluzny authored Apr 18, 2024
2 parents 604a146 + 4cb0d22 commit 7eb68b7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cms/cms.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,23 @@ const config = {
},
}


CMS.registerPreviewStyle('../commons.css')
CMS.registerPreviewTemplate('pages', PagePreview)
CMS.registerPreviewTemplate('forms', FormPreview)

const injectCustomStyle = () => {
const style = document.createElement('style')
style.innerHTML = `
div[data-slate-editor] {
-webkit-user-modify: read-write !important;
}
`
document.head.appendChild(style)
}

injectCustomStyle()

CMS.registerWidget(UuidWidget)
CMS.registerWidget(PermalinkWidget)

Expand Down

0 comments on commit 7eb68b7

Please sign in to comment.