RichText/Archived/Rooster/Rooster.gcomp/Support/node_modules/roosterjs/dist/rooster-amd.js
/**
     * Create an instance of Paste
     * @param preserved Not used. Preserved parameter only used for compatibility with old code
     * @param attributeCallbacks A set of callbacks to help handle html attribute during sanitization
     */
Create an instance of Paste
@param preserved Not used. Preserved parameter only used for compatibility with old code
@param attributeCallbacks A set of callbacks to help handle html attribute during sanitization
Create an instance of Paste @param preserved Not used . Preserved parameter only used for compatibility with old code @param attributeCallbacks A set of callbacks to help handle html attribute during sanitization
function Paste(preserved, attributeCallbacks) {
        var _this = this;
        this.onPaste = function (event) {
            buildClipboardData_1.default(event, _this.editor, function (items) {
                _this.pasteOriginal({
                    snapshotBeforePaste: null,
                    originalFormat: _this.getCurrentFormat(),
                    types: items.types,
                    image: items.image,
                    text: items.text,
                    rawHtml: items.html,
                    html: items.html ? _this.sanitizeHtml(items.html) : textToHtml_1.default(items.text),
                });
            });
        };
        this.applyFormatting = function (format, isDarkMode) { return function (element) {
            roosterjs_editor_dom_1.applyFormat(element, format, isDarkMode);
        }; };
        this.sanitizer = new roosterjs_html_sanitizer_1.HtmlSanitizer({
            attributeCallbacks: attributeCallbacks,
        });
    }
function Paste ( preserved , attributeCallbacks ) { var _this = this ; this . onPaste = function ( event ) { buildClipboardData_1 . default ( event , _this . editor , function ( items ) { _this . pasteOriginal ( { snapshotBeforePaste : null , originalFormat : _this . getCurrentFormat ( ) , types : items . types , image : items . image , text : items . text , rawHtml : items . html , html : items . html ? _this . sanitizeHtml ( items . html ) : textToHtml_1 . default ( items . text ) , } ) ; } ) ; } ; this . applyFormatting = function ( format , isDarkMode ) { return function ( element ) { roosterjs_editor_dom_1 . applyFormat ( element , format , isDarkMode ) ; } ; } ; this . sanitizer = new roosterjs_html_sanitizer_1 . HtmlSanitizer ( { attributeCallbacks : attributeCallbacks , } ) ; }
Create an instance of Paste
 @param preserved Not used.
Create an instance of Paste @param preserved Not used .