RichText/Archived/Rooster/Rooster.gcomp/Support/node_modules/roosterjs/dist/rooster-amd.js
/**
 * Format table
 * @param editor The editor which contains the table to format
 * @param format A TableFormat object contains format information we want to apply to the table
 * @param table The table to format. This is optional. When not passed, the current table (if any) will be formatted
 */
Format table
@param editor The editor which contains the table to format
@param format A TableFormat object contains format information we want to apply to the table
@param table The table to format. This is optional. When not passed, the current table (if any) will be formatted
Format table @param editor The editor which contains the table to format @param format A TableFormat object contains format information we want to apply to the table @param table The table to format . This is optional . When not passed the current table ( if any ) will be formatted
function formatTable(editor, format, table) {
    table = table || editor.getElementAtCursor('TABLE');
    if (table) {
        editor.addUndoSnapshot(function (start, end) {
            var vtable = new roosterjs_editor_dom_1.VTable(table);
            vtable.applyFormat(format);
            vtable.writeBack();
            editor.focus();
            editor.select(start, end);
        }, "Format" );
    }
}
function formatTable ( editor , format , table ) { table = table || editor . getElementAtCursor ( 'TABLE' ) ; if ( table ) { editor . addUndoSnapshot ( function ( start , end ) { var vtable = new roosterjs_editor_dom_1 . VTable ( table ) ; vtable . applyFormat ( format ) ; vtable . writeBack ( ) ; editor . focus ( ) ; editor . select ( start , end ) ; } , "Format" ) ; } }
Format table
 @param editor The editor which contains the table to format
 @param format A TableFormat object contains format information we want to apply to the table
 @param table The table to format.
Format table @param editor The editor which contains the table to format @param format A TableFormat object contains format information we want to apply to the table @param table The table to format .
/* Format */