instead of p tag, how i can start with h tag and then i can change into p or any other h tag #6900
Unanswered
abhijeet-tezminds
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
instead of p tag, how i can start with h tag and then i can change into p or any other h tag ?
screen-recorder-tue-dec-03-2024-17-08-53.webm
facing issue -
in this video you can see
when starting with p tag then it is working and changing in h tag and p tag
but when start with h tag then it is changing in another h tag but - not changing in p tag
here startTagWith can be p, h1, h2, ... tag (whatever i want to show in starting on editor)
`const EditorInstance = ({ startTagWith="h1" }) => {
const [editor] = useLexicalComposerContext();
expected output -
we are creating email builder when using lexical, so when h or p tag can drag and drop then start editor with p tag or h tag whatever dropped.
so editor can start with h tag or p tag
Beta Was this translation helpful? Give feedback.
All reactions