@ckeditor/ckeditor5-utils 49.1.0-alpha.2 → 49.1.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -915,8 +915,8 @@ function formatConsoleArguments(errorName, data) {
915
915
  /**
916
916
  * @module utils/version
917
917
  */
918
- const version = "49.1.0-alpha.2";
919
- const releaseDate = new Date(2026, 9, 30);
918
+ const version = "49.1.0-alpha.4";
919
+ const releaseDate = new Date(2026, 10, 1);
920
920
  /* v8 ignore next -- @preserve */
921
921
  if (globalThis.CKEDITOR_VERSION)
922
922
  /**
@@ -6804,7 +6804,7 @@ async function collectStylesheets(stylesheets) {
6804
6804
  function getEditorStyles() {
6805
6805
  const editorStyles = [];
6806
6806
  const editorCSSVariables = [];
6807
- for (const styleSheet of Array.from(document.styleSheets)) if (styleSheet.ownerNode.hasAttribute("data-cke")) {
6807
+ for (const styleSheet of Array.from(document.styleSheets)) if (styleSheet.ownerNode?.hasAttribute("data-cke")) {
6808
6808
  for (const rule of Array.from(styleSheet.cssRules)) if (rule.cssText.indexOf(".ck-content") !== -1) editorStyles.push(rule.cssText);
6809
6809
  else if (rule.cssText.indexOf(":root") !== -1) editorCSSVariables.push(rule.cssText);
6810
6810
  }