Skywriter Application

Version 21.1 by Thomas Mortagne on 2011/10/27 19:24

bespin-footer-s.pngEdit JSX and SSX using Mozilla Skywriter
Typeapplication
Category
Developed by

Jerome Velociter

Rating
1 Votes
LicenseGNU Lesser General Public License 2.1

Description

Replace code properties textearea of XWiki.JavaScriptExtension and XWiki.StyleSheetExtension with the Mozilla SkyWriter editor, when editing with the single object editor. 

SkyWriter will not show up if you use the standard object editor that list all object in the page : you have to click the link to edit just the extension that interests you.

skywriter.png

Known issues:

  • fullscreen editing will work only starting with XE 2.5
  • when returning from fullscreen edition, the layout is messed-up.

Prerequisites & Installation Instructions

  • Copy the following snippet and append it to your HTTP Meta Information option of the Presentation section of your wiki administration. 
##
## Skywriter
##
#if(($request.editor=="object" && ("$!request.classname" == 'XWiki.JavaScriptExtension' || "$!request.classname" == 'XWiki.StyleSheetExtension'))
  #set($attachment="skywriter-0.9a.zip")
  #set($ze = $xwiki.zipexplorer)
  #set($skywriterFile = "BespinEmbedded.uncompressed.js")
  #set($extensionDoc = $xwiki.getDocument("XWiki.Skywriter"))
  #set($swurl = $ze.getFileLink($extensionDoc, $attachment, $skywriterFile))
 <link id="bespin_base" href="${extensionDoc.getURL('download')}/skywriter-0.9a.zip/" />
 <script type="text/javascript" src="$swurl"></script>
#end

Get Connected