roosterjs-editor-api
Advanced tools
Comparing version 8.58.1 to 8.59.0
@@ -40,2 +40,5 @@ define(["require", "exports", "../utils/blockFormat", "roosterjs-editor-dom"], function (require, exports, blockFormat_1, roosterjs_editor_dom_1) { | ||
vList.setListStyleType(orderedStyle, unorderedStyle); | ||
if (isNewList(vList)) { | ||
vList.removeMargins(); | ||
} | ||
vList.writeBack(editor.isFeatureEnabled("ReuseAllAncestorListElements" /* ReuseAllAncestorListElements */), editor.isFeatureEnabled("DisableListChain" /* DisableListChain */)); | ||
@@ -46,3 +49,10 @@ } | ||
exports.default = toggleListType; | ||
function isNewList(vList) { | ||
var list = vList === null || vList === void 0 ? void 0 : vList.rootList; | ||
if (list) { | ||
return list.childElementCount === 0; | ||
} | ||
return false; | ||
} | ||
}); | ||
//# sourceMappingURL=toggleListType.js.map |
@@ -39,2 +39,5 @@ import blockFormat from '../utils/blockFormat'; | ||
vList.setListStyleType(orderedStyle, unorderedStyle); | ||
if (isNewList(vList)) { | ||
vList.removeMargins(); | ||
} | ||
vList.writeBack(editor.isFeatureEnabled("ReuseAllAncestorListElements" /* ReuseAllAncestorListElements */), editor.isFeatureEnabled("DisableListChain" /* DisableListChain */)); | ||
@@ -44,2 +47,9 @@ } | ||
} | ||
function isNewList(vList) { | ||
var list = vList === null || vList === void 0 ? void 0 : vList.rootList; | ||
if (list) { | ||
return list.childElementCount === 0; | ||
} | ||
return false; | ||
} | ||
//# sourceMappingURL=toggleListType.js.map |
@@ -41,2 +41,5 @@ "use strict"; | ||
vList.setListStyleType(orderedStyle, unorderedStyle); | ||
if (isNewList(vList)) { | ||
vList.removeMargins(); | ||
} | ||
vList.writeBack(editor.isFeatureEnabled("ReuseAllAncestorListElements" /* ReuseAllAncestorListElements */), editor.isFeatureEnabled("DisableListChain" /* DisableListChain */)); | ||
@@ -47,2 +50,9 @@ } | ||
exports.default = toggleListType; | ||
function isNewList(vList) { | ||
var list = vList === null || vList === void 0 ? void 0 : vList.rootList; | ||
if (list) { | ||
return list.childElementCount === 0; | ||
} | ||
return false; | ||
} | ||
//# sourceMappingURL=toggleListType.js.map |
@@ -6,8 +6,9 @@ { | ||
"tslib": "^2.3.1", | ||
"roosterjs-editor-types": "^8.58.1", | ||
"roosterjs-editor-dom": "^8.58.1" | ||
"roosterjs-editor-types": "^8.59.0", | ||
"roosterjs-editor-dom": "^8.59.0" | ||
}, | ||
"version": "8.58.1", | ||
"version": "8.59.0", | ||
"main": "./lib/index.js", | ||
"typings": "./lib/index.d.ts", | ||
"module": "./lib-mjs/index.js", | ||
"license": "MIT", | ||
@@ -14,0 +15,0 @@ "repository": { |
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
917973
7725