@contentstack/live-preview-utils
Version:
Contentstack provides the Live Preview SDK to establish a communication channel between the various Contentstack SDKs and your website, transmitting live changes to the preview pane.
21 lines (20 loc) • 482 B
JavaScript
import "../../chunk-5WRI5ZAA.js";
// src/visualBuilder/utils/pasteAsPlainText.ts
import { debounce } from "lodash-es";
var pasteAsPlainText = debounce(
(e) => {
e.preventDefault();
const clipboardData = e.clipboardData;
document.execCommand(
"inserttext",
false,
clipboardData == null ? void 0 : clipboardData.getData("text/plain")
);
},
100,
{ leading: true }
);
export {
pasteAsPlainText
};
//# sourceMappingURL=pasteAsPlainText.js.map