@cgi-learning-hub/ui 1.15.0-dev.1788514003 → 1.15.0-dev.1788514401

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.
@@ -2438,7 +2438,7 @@ function useTextStyleHandler(props) {
2438
2438
  return {
2439
2439
  setTextColor: (0, react.useCallback)((color) => {
2440
2440
  if (!editor) return;
2441
- editor.chain().focus().extendMarkRange("textStyle").setColor(color).run();
2441
+ editor.chain().focus().setColor(color).run();
2442
2442
  onSetTextStyle?.();
2443
2443
  }, [editor, onSetTextStyle]),
2444
2444
  removeTextColor: (0, react.useCallback)(() => {
@@ -2414,7 +2414,7 @@ function useTextStyleHandler(props) {
2414
2414
  return {
2415
2415
  setTextColor: useCallback((color) => {
2416
2416
  if (!editor) return;
2417
- editor.chain().focus().extendMarkRange("textStyle").setColor(color).run();
2417
+ editor.chain().focus().setColor(color).run();
2418
2418
  onSetTextStyle?.();
2419
2419
  }, [editor, onSetTextStyle]),
2420
2420
  removeTextColor: useCallback(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgi-learning-hub/ui",
3
- "version": "1.15.0-dev.1788514003",
3
+ "version": "1.15.0-dev.1788514401",
4
4
  "description": "React component library for Hub's design system, built on Material UI with custom and extended components.",
5
5
  "keywords": [
6
6
  "cgi-learning-hub",