`Editor.marks` seems to be truthy for all mark types if any mark is active
See original GitHub issueDo you want to request a feature or report a bug?
Bug
Looks like Editor.marks
is returning truthy, if any mark is active. This is the function I use:
const isMarkActive = (editor, type) => {
const [mark] = Editor.marks(editor, { match: { type }, mode: 'universal' })
return !!mark
};
What’s the current behavior?
Slate: 0.50.4 Browser: Chrome OS: Linux
What’s the expected behavior?
Returning the right mark status would be beneficial.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Mark - ProseMirror Reference manual
Reference manual. This is the reference manual for the ProseMirror rich text editor. It lists and describes the full public API exported by...
Read more >Proofreading Marks at a Glance
Proofreading marks (also called proofreaders' marks) are symbols and notations for correcting typeset pages. The proofreader places.
Read more >CodeMirror 5 User Manual
User manual and reference guide version 5.65.11. CodeMirror is a code-editor component that can be embedded in Web pages. The core library provides...
Read more >core-utils | Remirror
Check that the nodes and marks present on schemaA are also present on schemaB . ... Determines if a Node or Mark contains...
Read more >Docs • Svelte
Svelte uses the export keyword to mark a variable declaration as a property or prop, which means it becomes accessible to consumers of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ianstormtaylor could I give this a try?
Absolutely!