Skip to content

Commit

Permalink
Revert "Temporarily fix being unable to set 'whiteSpace' on 'NodeView…
Browse files Browse the repository at this point in the history
…Content'"

This reverts commit 8a8dd71.
  • Loading branch information
EvitanRelta committed Jul 1, 2022
1 parent 29bd087 commit cfb2ff8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ import { TextField as TextFieldIcon } from '@mui/material'
import { styled } from '@mui/material/styles'
import { Node } from '@tiptap/core'
import { CodeBlockLowlightOptions } from '@tiptap/extension-code-block-lowlight'
import { NodeViewProps, NodeViewWrapper } from '@tiptap/react'
import { NodeViewContent, NodeViewProps, NodeViewWrapper } from '@tiptap/react'
import _ from 'lodash'
import { lowlight } from 'lowlight/lib/all'
import { useCallback, useState } from 'react'
import { useAppSelector } from '../../../../store/hooks'
import { ModifiedNodeViewContent } from './ModifiedNodeViewContent'

interface OptionsFixLowLightType extends CodeBlockLowlightOptions {
lowlight: typeof lowlight
Expand Down Expand Up @@ -89,7 +88,7 @@ export default ({ node, updateAttributes, extension }: Props) => {
onChange={handleOnChange}
/>
<pre>
<ModifiedNodeViewContent
<NodeViewContent
as='code'
className={
language && !isPlainTextLanguage(language)
Expand Down

This file was deleted.

0 comments on commit cfb2ff8

Please sign in to comment.