Commit graph

28 commits

Author SHA1 Message Date
koehr
adb8cb2dd1 adds editorjs and some simple extensions 2020-05-25 11:38:18 +02:00
koehr
bfe3e00351 adds extended menu 2020-05-25 11:38:18 +02:00
koehr
a177c0b340 SPA redirect config for netlify 2020-05-25 11:38:18 +02:00
koehr
a2b0a1774d some extras for the live preview 2020-05-25 11:38:18 +02:00
koehr
d079c8ae7a select whole title on focus 2020-05-25 11:38:18 +02:00
koehr
738dce4884 Fixes problems with bogus root level text nodes
Depending on the browser in different situations the root node itself is
selected and new text ends up in a text node on root level instead of a new
paragraph. This happens in:

 * Firefox: after inserting a closed block like a horizontal rule
 * Chromium: after inserting or selecting such a closed block

Now instead of inserting a paragraph directly after inserting an HR, the editor
simply checks for normal text input inside the root node and wraps the newly
written text with a paragraph (and moves the caret to the end of the paragraph
because chromium moves it to the beginning of the line)
2020-05-25 11:38:18 +02:00
koehr
3a57abc423 add home/end/pageup/pagedown keys to menu sync 2020-05-25 11:38:18 +02:00
koehr
941118494a fix menu sync
this loops the search for marks until a block element is found, because marks
are nested elements like for example `<p><b><i>bold and italic</i></b></p>`.
2020-05-25 11:38:18 +02:00
koehr
44eabe831e add marks to editor actions (breaks menu sync) 2020-05-25 11:38:18 +02:00
koehr
5fc559abac implements basic menu functionalities
this includes standard block elements (headers, paragraphs, lists, rulers)
but not marks (bold, italic)
and for sure not special elements like the stat block
2020-05-25 11:38:18 +02:00
koehr
c64b9a95fb remove tiptap, start simple homegrown richtext functionalities
* menu now sends command events and button states
* menu state is synced with the elements at caret postion
* menu functionalities are not yet implemented
2020-05-25 11:38:18 +02:00
koehr
a33363eef0 trying to extend that editor 2020-05-25 11:38:18 +02:00
koehr
936ada94bd add tiptap rich text editor and lots of small improvements 2020-05-25 11:38:18 +02:00
koehr
71974f8ce3 adds review URL to README 2020-04-03 13:20:11 +02:00
koehr
986560d284 small refactoring and start to support list editing 2020-03-18 14:04:12 +01:00
koehr
9856ad8ed1 avoids duplicate event handlers from directive 2020-03-17 21:18:46 +01:00
koehr
b2dc169a28 updates README 2020-03-17 16:09:09 +01:00
Norman
8ed346eeee
Updates README 2020-03-17 00:52:42 +01:00
koehr
19bc0f80c1 updates README 2020-03-17 00:48:26 +01:00
koehr
456fc9f4bc introduces v-editable and makes most text elements editable 2020-03-17 00:46:28 +01:00
koehr
773ce67d70 prepare for editable cards 2020-03-16 20:51:44 +01:00
koehr
747d6b8471 no click bubbling 2020-03-16 16:33:33 +01:00
koehr
a35173acbb package upgrade 2020-03-16 16:33:02 +01:00
koehr
888364994d update README and screenshots 2020-03-16 15:38:01 +01:00
dependabot[bot]
7282905912
Bump acorn from 6.4.0 to 6.4.1 (#1)
Bumps [acorn](https://github.com/acornjs/acorn) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-16 15:27:10 +01:00
koehr
f01680f377 update README 2020-03-16 15:18:57 +01:00
koehr
1d1ace40bc Initial checkin after ove
See https://nest.pijul.com/n4n/rpg-cards-ng/patches for patch history
2020-03-16 15:12:47 +01:00
Norman
5583adc8c0
Initial commit 2020-03-16 15:09:35 +01:00