Skip to content

Instantly share code, notes, and snippets.

@nktvrm79
nktvrm79 / custom-Quilljs-block1.js
Last active March 2, 2019 14:56 — forked from mc-doc/custom-Quilljs-block.js
example custom Quilljs block widget
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;