diff --git a/examples/theme/index.tsx b/examples/theme/index.tsx index 0240a59..577948b 100644 --- a/examples/theme/index.tsx +++ b/examples/theme/index.tsx @@ -37,6 +37,9 @@ Object.assign(defaultTheme, { width: "inherit", position: "absolute", top: "20px" + }, + anchorLink: { + color: "#333333" } } } diff --git a/package.json b/package.json index de925ed..d20c9da 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mui-rte", - "version": "1.20.0", + "version": "1.21.0", "description": "Material-UI Rich Text Editor and Viewer", "keywords": [ "material-ui", diff --git a/src/MUIRichTextEditor.tsx b/src/MUIRichTextEditor.tsx index ab3a5e4..a0e7921 100644 --- a/src/MUIRichTextEditor.tsx +++ b/src/MUIRichTextEditor.tsx @@ -160,7 +160,7 @@ const styles = ({ spacing, typography, palette }: Theme) => createStyles({ }, anchorLink: { textDecoration: "underline", - color: palette.secondary.main + color: "inherit" }, toolbar: { }, @@ -309,7 +309,11 @@ const MUIRichTextEditor: RefForwardingComponent { toggleMouseUpListener() @@ -754,7 +758,8 @@ const MUIRichTextEditor: RefForwardingComponent = (props) => { - const { url } = props.contentState.getEntity(props.entityKey).getData() + const { url, className } = props.contentState.getEntity(props.entityKey).getData() return ( {props.children}