customize attr,but get old value at editorView.state.doc #1889
Unanswered
dingshaohua-com
asked this question in
Q&A
Replies: 1 comment 4 replies
-
|
You need to customize the ...
this.crepe.editor
.config(ctx => {
ctx.set(headingIdGenerator.key, value => value.textContent);
}) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In the previous issue #1883, I learned how to customize attributes (by rewriting nodes)!
but I found that after the modification:
although the rendering ID of the page changed, the ID obtained in editorView.state.doc was still the original old data!
like '-#2'...
i want make toc menu in md view, help me 😭
v7.10.3
Beta Was this translation helpful? Give feedback.
All reactions