roosterjs-editor-api
Advanced tools
Comparing version 8.32.0 to 8.33.0
@@ -15,5 +15,3 @@ define(["require", "exports", "../utils/formatUndoSnapshot", "../format/setBackgroundColor", "roosterjs-editor-dom"], function (require, exports, formatUndoSnapshot_1, setBackgroundColor_1, roosterjs_editor_dom_1) { | ||
var document = editor.getDocument(); | ||
var fragment = document.createDocumentFragment(); | ||
var table = document.createElement('table'); | ||
fragment.appendChild(table); | ||
table.cellSpacing = '0'; | ||
@@ -40,3 +38,3 @@ table.cellPadding = '1'; | ||
vtable.writeBack(); | ||
editor.insertNode(fragment); | ||
editor.insertNode(table); | ||
editor.runAsync(function (editor) { | ||
@@ -43,0 +41,0 @@ return editor.select(new roosterjs_editor_dom_1.Position(table, 0 /* Begin */).normalize()); |
@@ -15,5 +15,3 @@ import formatUndoSnapshot from '../utils/formatUndoSnapshot'; | ||
var document = editor.getDocument(); | ||
var fragment = document.createDocumentFragment(); | ||
var table = document.createElement('table'); | ||
fragment.appendChild(table); | ||
table.cellSpacing = '0'; | ||
@@ -40,3 +38,3 @@ table.cellPadding = '1'; | ||
vtable.writeBack(); | ||
editor.insertNode(fragment); | ||
editor.insertNode(table); | ||
editor.runAsync(function (editor) { | ||
@@ -43,0 +41,0 @@ return editor.select(new Position(table, 0 /* Begin */).normalize()); |
@@ -17,5 +17,3 @@ "use strict"; | ||
var document = editor.getDocument(); | ||
var fragment = document.createDocumentFragment(); | ||
var table = document.createElement('table'); | ||
fragment.appendChild(table); | ||
table.cellSpacing = '0'; | ||
@@ -42,3 +40,3 @@ table.cellPadding = '1'; | ||
vtable.writeBack(); | ||
editor.insertNode(fragment); | ||
editor.insertNode(table); | ||
editor.runAsync(function (editor) { | ||
@@ -45,0 +43,0 @@ return editor.select(new roosterjs_editor_dom_1.Position(table, 0 /* Begin */).normalize()); |
@@ -5,7 +5,7 @@ { | ||
"dependencies": { | ||
"roosterjs-editor-types": "^8.32.0", | ||
"roosterjs-editor-dom": "^8.32.0" | ||
"roosterjs-editor-types": "^8.33.0", | ||
"roosterjs-editor-dom": "^8.33.0" | ||
}, | ||
"main": "./lib/index.js", | ||
"version": "8.32.0", | ||
"version": "8.33.0", | ||
"typings": "./lib/index.d.ts", | ||
@@ -12,0 +12,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1036818
9765