bj's visualeditor includelib path on both Windows and Mac?

55 views
Skip to first unread message

armlet

unread,
Sep 12, 2018, 11:35:53 AM9/12/18
to TiddlyWiki
I have been using bj's visualeditor plugin on Windows, the tiddler `$:/plugin/jb/visualeditor/includelib` looks like this:
<script src="file:///C:/Users/.../ckeditor.js"></script>

And all related files are located in OneDrive folder and synced.

Now I am trying to open the tiddlywiki file on mac, but that path including `C:\` obviously doesn't work. Therefore ckeditor tiddlers are not rendering. They just display 'loading ckeditor'.
If I modify the path to be mac format, the same problem will happen on my Windows.

So my question is: is it possible to make the path work for both Windows and Mac?

Thanks

Mark S.

unread,
Sep 12, 2018, 12:28:52 PM9/12/18
to TiddlyWiki
On windows, I can use:

<script src='ckeditor_4.10.1_standard/ckeditor/ckeditor.js'></script>

which is a relative path below the current TW file. So, if you can do the same on Mac, then the same code could be used for both. (I don't have a Mac to test).

Windows supports junctions, and I believe Mac supports symbolic links. So your source directory would not have to physically be located beneath the current TW file.

Good luck,
Mark

armlet

unread,
Sep 12, 2018, 4:52:37 PM9/12/18
to TiddlyWiki
Relative path works! This is what it looks like:
<script src="../ckeditor.4.10.1/ckeditor.js"></script>

Thanks so much for the help.
Reply all
Reply to author
Forward
0 new messages