Commit graph

16 commits

Author SHA1 Message Date
koehr
f4e603b98e onesided printing functionality, halfway through, typescript errors 2020-06-13 17:37:41 +02:00
koehr
cadb759fba removes obsolete editor component 2020-05-25 19:49:54 +02:00
koehr
136da9d694 add dndstats component 2020-05-25 11:38:18 +02:00
koehr
600af1679a save card content, add charges component 2020-05-25 11:38:18 +02:00
koehr
fb5b5add6e add delimiter settings 2020-05-25 11:38:18 +02:00
koehr
ef8dacd89e finishes generalized contentless and content block classes 2020-05-25 11:38:18 +02:00
koehr
4e91649066 [BROKEN] started content-block class 2020-05-25 11:38:18 +02:00
koehr
adb8cb2dd1 adds editorjs and some simple extensions 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