Re: [tw5] Re: WYSIWYG editor for TW5

2022-05-06 Thread Lin Onetwo
For anyone who search to here via google, please see https://talk.tiddlywiki.org/t/demo-of-a-new-wysiwyg-editor-slate-write-unstable-alpha-stage/2788 in the tw talk forum, I want to make a wysiwyg editor that can save to wikitext. 在2021年1月16日星期六 UTC+8 17:17:34 写道: > It sounds like you're

Re: [tw5] Re: WYSIWYG editor for TW5

2021-01-16 Thread Jeremy Ruston
It sounds like you're running into TW5's CSRF protection. You can either ensure the specified header is present, or disable CSRF protection: https://tiddlywiki.com/#WebServer%20Parameter%3A%20csrf-disable Best wishes Jeremy -- Jeremy Ruston jer...@jermolene.com https://jermolene.com > On 16

[tw5] Re: WYSIWYG editor for TW5

2021-01-16 Thread BJ
I doubt if this is a bug. I have no idea if tiddlywiki supports anything other than saving tiddlers... You could open an issue on github with the tiddlywiki repository to try and get some expert advise. You could run your own server to support ckeditor upload requests. On Saturday, January

[tw5] Re: WYSIWYG editor for TW5

2021-01-15 Thread bluespire
Is there any way we could get Jeremy to weigh in on this? I'm not sure if this is a bug or a CKEditor configuration problem. On Thursday, January 14, 2021 at 4:47:29 AM UTC-6 BJ wrote: > That message is produced by the tw server here: > > if(!this.csrfDisable && authorizationType ===

[tw5] Re: WYSIWYG editor for TW5

2021-01-14 Thread Ibby (parc6502)
Ooh, I hadn't heard of prosemirror before, that looks really promising. It's beyond me to make use of it, but there is another open-source WYSIWYG markdown editor called Mark Text. Maybe someone more literate in these things would be able to make use of

[tw5] Re: WYSIWYG editor for TW5

2021-01-14 Thread BJ
That message is produced by the tw server here: if(!this.csrfDisable && authorizationType === "writers" && request.headers["x-requested-with"] !== "TiddlyWiki") { response.writeHead(403,"'X-Requested-With' header required to login to '" + this.servername + "'");

[tw5] Re: WYSIWYG editor for TW5

2021-01-13 Thread bluespire
OK. You pointed me in the right direction. I defined the necessary ckeditor variables in $:/plugins/bj/visualeditor/config.json to make uploading work. Now I have the upload tab. However, I still have a blocker. When I try to upload an image through ckeditor I get the following error in the

[tw5] Re: WYSIWYG editor for TW5

2021-01-09 Thread BJ
I don't have a problem with pasting images with my setup - I use 4.3.2 of the ckeditor lib. However I do not past images dirrectly into ckeditor as this creates large tiddlers. As tiddlywiki is a dynamic webpage, the plugin for ckeditor uses javascript to call the ckeditor lib thru its api -

[tw5] Re: WYSIWYG editor for TW5

2021-01-08 Thread bluespire
I don't want to use the native drag/drop/paste for images that TW5 uses. It's WAY to unwieldy for quickly taking notes and screenshots. I have to take these during meetings and presentations. CKeditor supports pasting images directly into the editor, but it requires a little bit configuration.

[tw5] Re: WYSIWYG editor for TW5

2021-01-08 Thread BJ
I am not sure what uloading means here - but if you select the tiddler type to be 'text/x-htmlp' then you can use the tiddlywiki image syntax - [img['path to image']] within the ckeditor. On Thursday, January 7, 2021 at 4:06:08 AM UTC+1 bluespire wrote: > I've got it to work, for the most part.

[tw5] Re: WYSIWYG editor for TW5

2021-01-06 Thread bluespire
I've got it to work, for the most part. Now I'm struggling to figure out why I can't get file pasting and uploading to work (for screenshots). No matter what I try, I keep getting a console error about the upload variable not being set. Now, most of the examples that I see for setting this up

[tw5] Re: WYSIWYG editor for TW5

2020-12-28 Thread bluespire
@Mark @ BJ *Mark, that worked brilliantly*. FYI, it was working using the cloudflare link, but I wanted to customize the package, and that can only be done with a local file. Thanks so much! BJ, can you update your documentation for this nodejs solution? On Sunday, December 27, 2020 at 9:58:12

[tw5] Re: WYSIWYG editor for TW5

2020-12-27 Thread 'Mark S.' via TiddlyWiki
On Sunday, December 27, 2020 at 7:42:14 PM UTC-8 bluespire wrote: > >- Current body of "$:/plugin/bj/visualeditor/includelib": > src='file:\\\c\users\Persona\Apps\TiddlyWikis\Personal\ckeditor\ckeditor.js'> > > I would be surprised if the browser allowed you mix a web page (even if

[tw5] Re: WYSIWYG editor for TW5

2020-12-27 Thread bluespire
@BJ I tried playing with it some more, and still no luck on the local instance. I've tried a bunch of ways, but here is my current setup. Maybe you can help me figure this out. - Windows 10 - NodeJS version of TiddlyWiki. - Location of NodeJS: C:\Users\Persona\Apps\node\node.js -

[tw5] Re: WYSIWYG editor for TW5

2020-12-20 Thread bluespire
Hmm. Well it has to be some kind of user error. I switched my local path of the cloudflare one, and it loaded immediately. I'll play around with it. On Sunday, December 20, 2020 at 1:58:48 AM UTC-6 bluespire wrote: > I'm not sure what I'm doing wrong. I tried a couple of different browsers, >

[tw5] Re: WYSIWYG editor for TW5

2020-12-19 Thread bluespire
I'm not sure what I'm doing wrong. I tried a couple of different browsers, and it's still not loading. It has the text that it's trying to load, but never does. On Friday, December 18, 2020 at 5:19:10 PM UTC-6 BJ wrote: > Hi Bluespire > The installation under node is the same as for a

[tw5] Re: WYSIWYG editor for TW5

2020-12-18 Thread BJ
Hi Bluespire The installation under node is the same as for a standalone tiddlywiki On Friday, December 18, 2020 at 9:04:54 PM UTC+1 bluespire wrote: > I'm running node. I'm having trouble getting Visual Editor to work. I took > all the tiddlers that were BJ's TW and exported them to .tids and

[tw5] Re: WYSIWYG editor for TW5

2020-12-18 Thread bluespire
I'm running node. I'm having trouble getting Visual Editor to work. I took all the tiddlers that were BJ's TW and exported them to .tids and placed them in a plugins folder, and then modified the tiddler for the path. It still doesn't load. Any ideas? On Saturday, June 27, 2020 at 2:19:50 PM

[tw5] Re: WYSIWYG editor for TW5

2020-07-07 Thread OGNSYA
@Lin that sounds great! I tried a few things (basic, since I'm not really a coder), but no success. On Monday, June 29, 2020 at 7:21:34 AM UTC+1 Lin Onetwo wrote: > I'm always planning to make w WYSIWYG editor for tw, I think it can be > done by: > > 1. single click to edit style only text

[tw5] Re: WYSIWYG editor for TW5

2020-06-29 Thread Lin Onetwo
I'm always planning to make w WYSIWYG editor for tw, I think it can be done by: 1. single click to edit style only text like //this//, right-click and choose "edit" in the context menu to edit macro or widget 2. this means we are editing things in "block level", we can know how to group

[tw5] Re: WYSIWYG editor for TW5

2020-06-27 Thread OGNSYA
@BJ Thanks for that! How did I miss this... I might be googling this wrong things. Where could I have found this? @Saq Thanks! I'll check it out! On Saturday, June 27, 2020 at 10:31:17 PM UTC+1 saq.i...@gmail.com wrote: > @ognsya you might save yourself some work by adapting the editing >

[tw5] Re: WYSIWYG editor for TW5

2020-06-27 Thread Saq Imtiaz
@ognsya you might save yourself some work by adapting the editing technique from: https://groups.google.com/forum/m/#!topic/tiddlywiki/lQ1N1t-0Gtw -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving

[tw5] Re: WYSIWYG editor for TW5

2020-06-27 Thread Saq Imtiaz
You're not wrong Mat in so far as that there is no WYSIWYG editor for TW that works with wikitext. I think the best option in the near future for those that really want WYSIWYG is to wait for a prosemirror markdown plugin. Which might not be far off from the sounds of this tweet:

[tw5] Re: WYSIWYG editor for TW5

2020-06-27 Thread BJ
its like this: <$edit-html tiddler="test" field="text"/> BJ On Saturday, June 27, 2020 at 10:37:06 PM UTC+2, OGNSYA wrote: > > Could be (well, probably is) what you said. > > But (I think) I'm trying something a bit different (and probably stupid). > The way I'm doing it, I'd never (or rarely)

[tw5] Re: WYSIWYG editor for TW5

2020-06-27 Thread OGNSYA
Could be (well, probably is) what you said. But (I think) I'm trying something a bit different (and probably stupid). The way I'm doing it, I'd never (or rarely) actually open a tiddler in Edit mode. I'd always open an instance of a Temporary Tiddler template, which would grab all relevant info

[tw5] Re: WYSIWYG editor for TW5

2020-06-27 Thread Mat
OGNSYA wrote: > > I would like to be able to edit my tiddlers directly, from View mode. > Well, there is still a visual difference between when you edit something and when you only view it - even if the visual difference is the only the display of an editor toolbar. This means there are still

[tw5] Re: WYSIWYG editor for TW5

2020-06-27 Thread OGNSYA
I'm thinking my use of the word "tag" in my previous message could be confusing, since it's different that the way the word tag is used in TW . What I meant is to tag in the sense of defining a block. Something like On Saturday, June 27, 2020 at 8:53:45 PM UTC+1 OGNSYA wrote: > Yep. My

[tw5] Re: WYSIWYG editor for TW5

2020-06-27 Thread OGNSYA
Yep. My mistake! I'm using TiddlyDesktop and thought a reload was enough. I had to close and reopen, now it works! @Mat: Please don't shut up! I understand what you explained, that things like that would need to be solved... Maybe have a special tag for such codes (something akin to the "red

[tw5] Re: WYSIWYG editor for TW5

2020-06-27 Thread Mat
Mat wrote: > > So, no, TW5 doesn't really offer any WYSIWYG editor as far as I know... > Or, evidently, maybe I should just shut up. <:-) -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails

[tw5] Re: WYSIWYG editor for TW5

2020-06-27 Thread 'Mark S.' via TiddlyWiki
The 4.6.2 links seems to work. But I didn't test it hard. On Saturday, June 27, 2020 at 12:19:03 PM UTC-7, BJ wrote: > > I am using the 4.3.2 version of the ckeditor, get it from here: > > https://ckeditor.com/ckeditor-4/download/releases/ >

[tw5] Re: WYSIWYG editor for TW5

2020-06-27 Thread Mat
OGNSYA wrote: > > Is TW5 able to offer a wysiwyg editor at the moment? > Thing is... what would that mean? It is perhaps clear that //this// could be displayed like *this* in the editor. But what about {{{ [tag[number]] }}} ? Should this be displayed in the editor as e.g one, three, two ...?

[tw5] Re: WYSIWYG editor for TW5

2020-06-27 Thread 'Mark S.' via TiddlyWiki
I used Birthe's instructions (the post prior to yours) and it worked immediately. What is your setting for $:/plugin/bj/visualeditor/includelib ? Are you running single file or node? Don't forget that for plugins to work, your TW file has to be saved and reloaded. Good luck! On Saturday,

[tw5] Re: WYSIWYG editor for TW5

2020-06-27 Thread BJ
I am using the 4.3.2 version of the ckeditor, get it from here: https://ckeditor.com/ckeditor-4/download/releases/ the link to

[tw5] Re: WYSIWYG editor for TW5

2020-06-27 Thread OGNSYA
Is TW5 able to offer a wysiwyg editor at the moment? In this 2019 gh thread Jermolene suggests it could be doable, due to recent developments. Other than that, the only solution I've found for this is CKEditor (in this 2017 thread - which