JSEditor v0.1 [Released]

Printer Friendly Version Attach Files

wdavatar?user=tsangk
tsangk
29 May 2010 06:45. Edited 1 times. (Edit, Permalink)

JSEditor is a Javascript Based Wikidot Syntax Editor. The whole editor is still under development.

The current version (v0.1) has the following features:

  • Bold
  • Itatlics
  • Underline
  • Strikethrough
  • Subscript
  • Superscript
  • ListUsers Module
  • CSS Module
  • Redirect Module
  • Comments Module
  • HTML/Embed
  • Join Module
  • NewPage Module

Download: v0.1

Included page "inc:signature" does not exist (create it now)

wdavatar?user=leiger
leiger

29 May 2010 08:25. Edited 2 times. (Edit, Permalink)

Browser: Google Chrome 5.0.375.55 beta (latest version)
Operating System: Windows 7 Professional, 32-bit

None of the buttons on the second row (that pop up and have a "Publish" button) seem to be working. Clicking the button presents a popup where I can define the options for the module, but clicking on "Publish" does nothing at all.

The Bold, Italic, etc. buttons in the top row work perfectly fine.

Included page "inc:signature" does not exist (create it now)

wdavatar?user=tsangk
tsangk

29 May 2010 08:58. Edited 0 times. (Edit, Permalink)
I'm currently running 4.1.249.1036 (41514) and I don't have problems. I'm also on XP :-)
Just a few questions:
Have you tested it on other browsers on W7? Does it work?
Are there any errors? You can do this by Ctrl+Shift+J and copy all errors (if there are any)

Included page "inc:signature" does not exist (create it now)

wdavatar?user=leiger
leiger

30 May 2010 08:31. Edited 2 times. (Edit, Permalink)
Works fine in Firefox. Can't get it working with Chrome.

Ctrl+Shift+J

These are the errors it listed after I…

  1. Clicked on the CSS module button
  2. Clicked on the Publish button without entering any text

Unsafe JavaScript attempt to access frame with URL file:///C:/Users/Shane/Desktop/WikidotOfflineJSEditor[v0.2]/JSEditor/editor.html from frame with URL file:///C:/Users/Shane/Desktop/WikidotOfflineJSEditor[v0.2]/JSEditor/css.prompt.html. Domains, protocols and ports must match.
base.js:181Uncaught TypeError: Property 'insertsTag' of object [object DOMWindow] is not a function

Does that help? I can guess what the problem might be based on that, but you're the Javascript expert (well, you and James) so I'll let you figure it out :)

Included page "inc:signature" does not exist (create it now)

wdavatar?user=tsangk
tsangk

31 May 2010 06:21. Edited 1 times. (Edit, Permalink)
The problem is (you might have guessed) cross-domain security. The thing I don't understand is why Chrome think it is unsafe to execute the script when it is in the same protocol (file:///) and host and port. After testing the bug, I can conclude that you can not execute between the "file:///" protocol. My only solution is to include a Jibble Web Server within the zip and hope that the end users know what to do.

Edit: Will you be able to compile a special version of Jibble? I only have JRE so I can't compile :S (if you can, I'll send you more info)

Included page "inc:signature" does not exist (create it now)

wdavatar?user=leiger
leiger

31 May 2010 09:00. Edited 0 times. (Edit, Permalink)
Never used Jibble before. I have the JDK though, need it to compile STE.

Included page "inc:signature" does not exist (create it now)

wdavatar?user=tsangk
tsangk

31 May 2010 09:09. Edited 1 times. (Edit, Permalink)
How does the process work? Is it like *.java > *.class > .*jar?
NVM, Worked it out xD

Included page "inc:signature" does not exist (create it now)

wdavatar?user=leiger
leiger

31 May 2010 09:23. Edited 0 times. (Edit, Permalink)
Compile with javac
Run with java

Optionally, add the compiled files (and source files if you wish) into a Jar file using jar cfm NameOfJarFile.jar MANIFEST.MF *.class (but you need to create a MANIFEST.MF file first)

Included page "inc:signature" does not exist (create it now)

wdavatar?user=tsangk
tsangk

31 May 2010 09:44. Edited 0 times. (Edit, Permalink)
Thanks Shane. Can you please compile this:
http://kenstorage.wdfiles.com/local--files/file:1/WebServerFull.zip

The old "class" files can be deleted.

Thanks,
Ken

Included page "inc:signature" does not exist (create it now)

Post Reply

Add reply on "JSEditor v0.1 Released"

Printer Friendly Version Attach Files

CSS Theme, Images and Code on this website are © Shane Smith 2010-2012. All forum posts by users and documentation licensed under Creative Commons BY-NC-SA 3.0 License.