How to disable default paragraph tool #1897
Replies: 9 comments 7 replies
-
You can specify default Tool. From types/configs/editor-config.d.ts
|
Beta Was this translation helpful? Give feedback.
-
but after this the toolbar option is not available to select another tool/block, that's why want disable this permanently. |
Beta Was this translation helpful? Give feedback.
-
I use |
Beta Was this translation helpful? Give feedback.
-
Hi all, |
Beta Was this translation helpful? Give feedback.
-
I added defaultBlock but still text is showing in the toolbar is there a way to hide it ? |
Beta Was this translation helpful? Give feedback.
-
For those who come across this problem just set paragraph to false like this import MyCustomBlock from './plugins/MyCustomBlock'
new EditorJS({
holder: 'editorjs',
defaultBlock: 'customBlock'
tools: {
paragraph: false,
customBlock: MyCustomBlock
}
}) |
Beta Was this translation helpful? Give feedback.
-
Maybe it's a problem with your paragraph implementation. For me, I gave up
because there is no toolbar support for custom paragraphs.
A sábado, 30/12/2023, 4:28 da tarde, Kalila ***@***.***>
escreveu:
… This doesn't quite work, it throws an error about "readonly" mode not
being available on "paragraph: false".
—
Reply to this email directly, view it on GitHub
<#1897 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQ3M5XTPV2OCSWAFNHJN2ELYMA6KZAVCNFSM5NHBNZD2U5DIOJSWCZC7NNSXTOKENFZWG5LTONUW63SDN5WW2ZLOOQ5TOOJXHE2TINY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Facing issue when i false paragraph then I can't able to get block content complete component : export default function Editor({ useEffect(() => {
}, [initialContent]); const save = async () => { return ( <div id="editorjs" className="min-h-[50vh] min-w-[80%] border-[1px] rounded-md" style={{ border: "1px solid lightgray", padding: "20px" }} /> {loading ? "Loading..." : "Submit"} ); } |
Beta Was this translation helpful? Give feedback.
-
I think, instead of relying on the paragraph block in Editor.js, it should use an empty block as the default. |
Beta Was this translation helpful? Give feedback.
-
The question.
How to disable default paragraph tool?
Beta Was this translation helpful? Give feedback.
All reactions