[tw5] Question about VisualEditor by BJ

Hi guys,

I was jumping for joy when I managed to get the VisualEditor plugin to load from CDN on the CKEditor v.4 website.

However, I wanted to customize the editor so I proceeded with the following steps on my DigitalOcean Ubuntu VPS:

  1. npm install --save ckeditor4
  • This installed the ckeditor to file path /root/node_modules/ckdeditor4
  1. I followed BJ’s plugin’s instruction to modify $:/plugin/…/includelib with this script:
  • Specifically
  • I also tried with just:
    • file:///root/node_modules/ckeditor4./node_modules/ckeditor4/ckeditor.js
      When I saved and refreshed, the editor doesn’t load.

Any one have any thoughts on what I’m doing wrong?

@BJ

Does it really go down node_modules twice? What is the “.” after the “4” ? It kind of looks like two path types, absolute and relative, are glued together. Maybe a screen print?

As mark says your path looks a bit messed up.

I would suggest downloading from here

not all versions work well - I use this version.

That’s weird now it was copy and pasted like that above; might have slipped my mind so early in the morning.

This is the file path (using Filezilla to access my DigitalOcean server).

And:

The “load from CDN link” seems to work the best, allowing the ckeditor to load.

  • Is there a way to install extra ckeditor plugins via CDN? (extra plugins found here)

  • I also found this instruction here (JS+ widgets and scripts for your website) but I’m not savvy enough to understand Step 2, Step 3, Step 4.

    • Step 2: What does it mean to upload ‘plugin content to my website’?
    • Step 3 and 4: Which file do I edit to input those codes?
      Thanks for all your help.

Taylor

The CDN link sometime goes down - it is not 100% reliable.

It should be straight forward to download the library from the like I gave above.

  1. are you using running tiddlywiki under nodejs - a file url will not work in this case.
  2. to check that the browser can see your ckeditor library try typing the full pathname of the library in the browser ie file:///root/node_modules/ckeditor4/ckeditor.js - you should see the js code appear.

Once you have your local version working the instructions to include an plugin are here:

https://js.plus/docs/how-to-install-a-plugin-to-ckeditor

The config is exposed in the tiddler

$:/plugins/bj/visualeditor/config.json

Hi BJ,

I set up my tiddlywiki under NodeJS. What should I use instead of the file url?

it needs to be on ‘localhost’

It is a bit more technical, there is a node module

I have not looked at the details