Skip to content

Commit

Permalink
Implement tiptap 2 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
emptynick committed May 8, 2021
1 parent c96c65d commit c3dfc46
Show file tree
Hide file tree
Showing 28 changed files with 3,849 additions and 10,409 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
.DS_Store
.idea
vendor
build
/tests/Browser/console
/tests/Browser/screenshots
.lock
Expand Down
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Tiptap WYSIWYG editor for Voyager II
# Tiptap 2 WYSIWYG editor for Voyager II

This is a WYSIWYG editor based on [tiptap](https://github.com/scrumpy/tiptap)
This is a WYSIWYG editor based on [tiptap 2](https://github.com/ueberdosis/tiptap)

## TODO

- Add anchor extension
- Add image extension
- Add media-picker modal
- Add autocomplete based on a custom route (allow linking as well?)
- Add `input` class to ListItem checkbox when tiptap supports it
- Disabled should really be `disabled`. Tiptap only restricts writing into the editor (not running actions)

## Special thanks

- [tiptap](https://tiptap.dev) made by [ĂĽberdosis](https://ueberdosis.io/)
- [Tabler-icons](https://github.com/tabler/tabler-icons) for the awesome icons - go check them out!
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "emptynick/voyager-tiptap",
"description": "Tiptap WYSIWYG editor for Voyager II",
"keywords": ["voyager2-plugin", "voyager", "tiptap", "wysiwyg"],
"license": "MIT",
"authors": [
{
Expand Down
1 change: 1 addition & 0 deletions dist/tiptap.umd.js

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
3 changes: 0 additions & 3 deletions mix-manifest.json

This file was deleted.

12,684 changes: 2,717 additions & 9,967 deletions package-lock.json

Large diffs are not rendered by default.

64 changes: 37 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,39 @@
{
"name": "voyager-black-theme",
"version": "1.0.0",
"description": "An all-black theme for Voyager II",
"scripts": {
"dev": "npm run development",
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch-poll": "npm run watch -- --watch-poll",
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
"prod": "npm run production",
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
},
"devDependencies": {
"cross-env": "^7.0.2",
"laravel-mix": "^5.0.4",
"vue-template-compiler": "^2.6.11"
},
"keywords": [],
"author": "Christoph Schweppe",
"license": "MIT",
"dependencies": {
"sass": "^1.26.10",
"sass-loader": "^9.0.3",
"tiptap": "^1.29.5",
"tiptap-extensions": "^1.32.4",
"vue": "^2.6.11"
}
"name": "tiptap-vite",
"version": "0.0.0",
"scripts": {
"build": "vite build",
"watch": "vite build --mode development --watch"
},
"dependencies": {
"@tabler/icons": "^1.41.1",
"@tiptap/core": "^2.0.0-beta.53",
"@tiptap/extension-blockquote": "^2.0.0-beta.11",
"@tiptap/extension-bullet-list": "^2.0.0-beta.11",
"@tiptap/extension-character-count": "^2.0.0-beta.10",
"@tiptap/extension-code-block": "^2.0.0-beta.13",
"@tiptap/extension-document": "^2.0.0-beta.10",
"@tiptap/extension-heading": "^2.0.0-beta.11",
"@tiptap/extension-history": "^2.0.0-beta.10",
"@tiptap/extension-horizontal-rule": "^2.0.0-beta.14",
"@tiptap/extension-image": "^2.0.0-beta.11",
"@tiptap/extension-list-item": "^2.0.0-beta.11",
"@tiptap/extension-ordered-list": "^2.0.0-beta.11",
"@tiptap/extension-paragraph": "^2.0.0-beta.12",
"@tiptap/extension-task-item": "^2.0.0-beta.13",
"@tiptap/extension-task-list": "^2.0.0-beta.13",
"@tiptap/extension-text": "^2.0.0-beta.10",
"@tiptap/extension-text-align": "^2.0.0-beta.14",
"@tiptap/extension-typography": "^2.0.0-beta.10",
"@tiptap/extension-underline": "^2.0.0-beta.12",
"@tiptap/starter-kit": "^2.0.0-beta.50",
"@tiptap/vue-3": "^2.0.0-beta.33",
"vue": "^3.0.11"
},
"devDependencies": {
"@vitejs/plugin-vue": "^1.2.2",
"@vue/compiler-sfc": "^3.0.11",
"sass": "^1.32.12",
"vite": "^2.2.4"
}
}
2 changes: 0 additions & 2 deletions resources/dist/tiptap.js

This file was deleted.

29 changes: 0 additions & 29 deletions resources/dist/tiptap.js.LICENSE.txt

This file was deleted.

18 changes: 0 additions & 18 deletions resources/lang.php

This file was deleted.

28 changes: 28 additions & 0 deletions resources/lang/en/tiptap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

return [
'blockquote' => 'Blockquote',
'bubble_menu' => 'Bubble menu',
'bullet_list' => 'Bullet list',
'bold' => 'Bold',
'center' => 'Center',
'character_count' => ':chars of :max characters',
'clear' => 'Clear',
'code' => 'Code',
'code_block' => 'Code block',
'heading' => 'Heading',
'horizontal_rule' => 'Horizontal rule',
'italic' => 'Italic',
'justify' => 'Justify',
'left' => 'Left',
'max_characters' => 'Max characters (0 = infinite)',
'redo' => 'Redo',
'right' => 'Right',
'strike' => 'Strike',
'strong' => 'Strong',
'task_list' => 'Task list',
'text_align' => 'Text align',
'underline' => 'Underline',
'undo' => 'Undo',
'ordered_list' => 'Ordered list',
];
19 changes: 0 additions & 19 deletions resources/src/components/Formfield/Browse.vue

This file was deleted.

62 changes: 0 additions & 62 deletions resources/src/components/Formfield/Builder.vue

This file was deleted.

24 changes: 0 additions & 24 deletions resources/src/components/Formfield/EditAdd.vue

This file was deleted.

24 changes: 0 additions & 24 deletions resources/src/components/Formfield/Read.vue

This file was deleted.

Loading

0 comments on commit c3dfc46

Please sign in to comment.