Comments (6)
I kind of "fixed" it (updated the example code), by just wrapping the with a div with dispay:none property
Since inside this lib there is also a div, that wrapps the actual component maybe you can add this to the library — it should not break things
from svelte-tiptap.
There are two options to solve this.
- wrap a div around bubble menu with display none property, See #5 (comment)
<div style="display:none;">
<BubbleMenu editor={$editor}></BubbleMenu>
</div>
- Move the BubbleMenu inside EditorContent (Requires v1.1.0)
<EditorContent editor={$editor}>
<BubbleMenu editor={$editor}></BubbleMenu>
</EditorContent>
Since this is a bug in the bubble menu plugin itself. Closing this issue. There is an open issue to track this ueberdosis/tiptap#2568
from svelte-tiptap.
Hi @jesteracer. I can see the bug. Tried to locate it, but there seems to be nothing wrong here.
It could be with tiptap itself. Took a shortcut to verify this, I tried reproducing this with tiptap's react package. It happens there as well.
from svelte-tiptap.
Thanks. Nice workaround 👍 .
Since inside this lib there is also a div, that wrapps the actual component maybe you can add this to the library
Maybe If nothing works, First Let's see if this bug can be fixed.
from svelte-tiptap.
I think you need to add type="button" to the buttons as well.
from svelte-tiptap.
Related Issues (19)
- Demo link points to unrelated project HOT 2
- Add ability to add/remove svelte components from example? HOT 2
- Minimal example in readme does not work without one extension HOT 3
- how to dynamically update the editor content ?
- Critical error when trying to use with SvelteKit 1.0 HOT 14
- Packaging Upgrades HOT 3
- Cursor can not be moved upwards out of svelte editable component HOT 4
- Typescript types are not in the dist HOT 5
- Editable component doesn't allow backspace or most editing operations if initial content is empty. HOT 2
- Support of Mention/Suggestion extension HOT 1
- No idea what to do... HOT 1
- Help with the `isActive` reactivity HOT 4
- Whole node is draggable HOT 6
- handling unused props with `SvelteNodeViewRenderer` HOT 7
- Could not resolve "@tiptap/extension-floating-menu" HOT 3
- What is the purpose of svelte-component-selected? HOT 3
- Demo site and basic tutorial don't work HOT 3
- Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'element') at init HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svelte-tiptap.