MaweJS (MAWE, Mawe Advanced Writer's Editor) with SlateJS #5739
mkoskim
started this conversation in
Show and tell
Replies: 1 comment
-
Few answers in beforehand: (1) If you ask why folding is done entirely at CSS level, it is because that to change the entire tree in SlateJS to folded is just too laborous to SlateJS. Just make it hidden in a browser. (2) In general, I have tried to move the functionality from React to CSS (browser), because in most cases, browser is faster. There is no need for absolute performance, but it is mandatory that when writing, the editor is highly responsive. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
MaweJS is my third generation writer's editor. The first one was MOE, second was Mawe (Mawe, Advanced Writer's Editor), and MaweJS is Mawe implemented with ReactJS, ElectronJS - and Slate. See:
https://github.com/mkoskim/mawejs
Older ones:
MaweJS is made for one specific purpose: writing stories. From short stories to novels, anything from 2,000 words to 200,000 words. It operates a bit differently compared to regular structured editors: instead of limiting you to write your story scene by scene, chapter by chapter, you edit it all-at-once. What I use SlateJS for, is its ability to edit structured - tree-like - documents.
I am using ElectronJS just to give access to local filesystem. At some point of future, MaweJS may be entirely a web application.
MaweJS is still very early phase of development. But all my three generations of writer's software has been used to write many published stories. I use it personally on daily basis, which is one reason to slow down the development - I generally start working with an issue if I really need that.
One of the main problems with SlateJS has been the lack of documentation, or its quality. I have learned to use SlateJS by the hard way, trial and error. That is what you see in the code, if you take a look of it:
https://github.com/mkoskim/mawejs/tree/master/src/gui/editor
I am pretty sure that people with more insight with SlateJS have good suggestions to make the implementation better.
At the moment, the editor works just fine. I have some very difficult problems related to element folding and other things, but generally - it works fine.
Feel free to give comments here, or write something to MaweJS discussion board:
https://github.com/mkoskim/mawejs/discussions
Any help will be highly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions