topo-io / tiptap-extensions Goto Github PK
View Code? Open in Web Editor NEWColumn extension for tiptap v2
Home Page: https://codesandbox.io/p/github/GoCapsule/tiptap-extensions/main
Column extension for tiptap v2
Home Page: https://codesandbox.io/p/github/GoCapsule/tiptap-extensions/main
I am not able to use any commands of extension in vue app. Is this extension only compatible with React apps? It gives me
TypeError: this.editor.chain(...).focus(...).setColumns is not a function
Can you please help me with these?
With an empty editor, the columns seems to render properly and is editable:
But when loading saved data into editor, it loses the column markup:
Actual data:
<div class="column-block"><div class="column"><p>one</p></div><div class="column"><p>two</p></div></div>
What the editor holds:
<div contenteditable="true" translate="no" class="ProseMirror" tabindex="0"><p>one</p><p>two</p></div>
Any idea what I may be doing wrong?
Hey!
Love this package, I wasn't too familiar with React so I made an implementation of it in pure typescript so react or vue can use it!
https://github.com/marclave/extension-columns
Should I make a pr that follows this repo?
The code sandbox in the Github readme is broken.
Error on load:
-1 - Error: UNKNOWN_ERROR - 500 - {"error":"Error","message":"initialize error: Cannot use simple-git on a directory that does not exist"} (500)
Side-note: Thank you for making this. Works great and saved a ton of time.
when using content type doc it work fine but when I tried to use content type HTML it's not render on editor
Please see Code Sandbox
I get the following error with my vue 3/vite environment:
[vite] Internal server error: Failed to resolve entry for package "@gocapsule/column-extension". The package may have incorrect main/module/exports specified in its package.json.
this is how I call it in my file:
import ColumnExtension from '@gocapsule/column-extension';
this is how i call it in my package:
"@gocapsule/column-extension": "^0.1.1"
I use the vue 3 package for tiptap not the core one, maybe that's an issue?
Thanks for the package. It works fine but when I save the layout and retrieve the content the parent div gets lost for some reason and the layout disappear.
Great work!
Is there any plans to add handlers between columns to resize?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.