This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var BlockSDK = require('blocksdk'); | |
if (window.self === window.top) { | |
document.body.innerText = 'This application is for use in the Salesforce Marketing Cloud Content Builder Editor only.'; | |
} else { | |
var sdk = new BlockSDK(); | |
sdk.getContent(function (content) { | |
var quill = new Quill('#editor-container', { | |
theme: 'snow' | |
}); | |
quill.root.innerHTML = content; |