This change allows overruling the editor’s CSS using the same selectors.
stylesheet.href = "{$__wcf->getPath()}style/ckeditor5.css";
stylesheet.id = "ckeditor5-stylesheet";
- document.head.append(stylesheet);
+ document.querySelector('link[rel="stylesheet"]').before(stylesheet);
}
}
</script>
stylesheet.href = "{$__wcf->getPath()}style/ckeditor5.css";
stylesheet.id = "ckeditor5-stylesheet";
- document.head.append(stylesheet);
+ document.querySelector('link[rel="stylesheet"]').before(stylesheet);
}
}
</script>