Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
It took me about three days of work to migrate from tiptap v1 to tiptap v2. It includes migration for a custom extension that uses a Vue router for links. The tiptap's team did a good job with the migration guide, thank you. It was straightforward and easy to do.
migrateExtensions(content) { for (const node of content) { // tiptap 2 migrate extensions type from v.1 to v2. // https://tiptap.dev/overview/upgrade-guide#new-names-for-most-extensions if (node.type === "bullet_list") node.type = "bulletList"; if (node.type === "code_block") node.type = "codeBlock"; if (node.type === "hard_break") node.type = "hardBreak"; if (node.type === "horizontal_rule") node.type = "horizontalRule"; if (node.type === "list_item") node.type = "listItem"; if (node.type === "ordered_list") node.type = "orderedList"; if (node.type === "table_cell") node.type = "tableCell"; if (node.type === "table_header") node.type = "tableHeader"; if (node.type === "table_row") node.type = "tableRow"; if (node.type === "todo_list") node.type = "taskList"; if (node.type === "todo_item") node.type = "todo_item"; // recursion if (node.content && node.content.length > 0) migrateExtensions(node.content); } }
Related posts
- What WYSIWYG editor do you use that has collaborative editing in Go?
- Seeking Suggestions for the Best Library to Implement a New Rich Text Editor in React
- Sharing your Tailwind Configuration between Monorepo Packages
- Should I use rust+wasm to build a rich text editor?
- Ask HN: How do you test a collaborative Editor?