SkinEditor Application

This application isn't bundled with any XWiki product by default.
Application contributed by Jerome Velociter.
This application can be downloaded.

SkinEditor Application

The Skin Editor Application eases the development of XWiki Skins and Skin eXtensions. It embeds Mozilla's Bespin Editor to offer developers a new editing experience in the browser.

This application is licensed under the Mozilla Public License. Bespin's original code is the work of the Mozilla Labs Bespin Team

Features

Editing features

The Skin Editor provides edition of wiki skin and skin extensions files with Bespin's code editor. Syntax coloration is available for JavaScript and CSS files. Velocity templates will benefit from HTML coloration for the HTML bits of the templates. Bespin's default 3 themes are available : coffee, white and black. Three font sizes are available.

The list on the right displays all available files for the Skin or the Skin eXtension currently being edited. An option allows to hide files that are empty (which in general means that the skin uses instead the file with same name from the skin the edited skin inherits). Pseudo-locks allows you to know which files are currently being edited by other developers. The list of files and locks is updated automatically every 10 seconds while you are editing, so that you are informed of new locks, and of locks being released.

If you try to edit a locked file, as for regular wiki pages, a warning message will inform you the file is being locked, and will provide you a link to force the lock. Be aware then that when saving your changes you are potentially overwriting the other developer work.

Viewing features

In view mode, your skin or skin extension document will display a list of available files, and for each of them provide both a link to edit with the skin editor or a "zoom" link to view the source code for this file.

How to use

Download and import the application XAR in your wiki. Make sure the page XWiki.SkinEditor is saved with the programming right (If it's not, a warning message will inform you when you will try to use the skin editor.)

To make the skin editor available for a Skin or a Skin Extension document, simply write the following line as the content of this document :

#includeInContext("XWiki.SkinEditor")

Warning: The line above should be the only content of the skin document, or the skin editor will not work properly when editing.

Warning: Mozilla's Bepsin editor is built upon the HTML canvas element. You will be able to experience the editor only in browsers that supports natively this element, that is recent versions of Firefox or Safari.

Tags:
Created by Jérôme Velociter on 2009/02/28 16:47
Last modified by Lucien Pereira on 2009/06/18 15:40

This wiki is licensed under a Creative Commons license
2.0.2.24648