Archive for the 'SPAW Editor' Category

2.0.2 is Out

February 19th, 2007 by ailon

We have released version 2.0.2 of SPAW Editor PHP Edition a little earlier than planned. The main reason for this rush is that we have made a new lightweight spaw2lite theme and it uncovered a small bug in the theming subengine of earlier versions which made it impossible to release spaw2lite for the current SPAW2 version.

So we assembled all the accumulated fixes to date, made a few more quick bugfixes and here it is - SPAW Editor PHP Edition v.2.0.2

There are 2 other important issues which influenced our decision to release 2.0.2 early: a) all the strings like $10 (dollar sign followed by digits) were removed due to a bug; b) setting hyperlink on selected image object under IE made the image disappear and produced javascript error.

Here’s a complete list of changes in this release:

  1. FEATURE ADDED: SpawFm plugin: when “fsdir” parameter is set, “dir” parameter can be set to absolute URL
  2. FEATURE ADDED: added semi-automatic path calculation to config file which could be used if fully automatic algorithm fails
  3. FEATURE ADDED: added preformatted, address and paragraph (<p>) options to default paragraph dropdown option list
  4. BUGFIX: when applying a hyperlink to selected image the image was removed under IE
  5. BUGFIX: strings like $xx (where xx - some digits) were treated by the editors  PHP code as regex back references and stripped from the content
  6. BUGFIX: background color setting in default wysiwyg.css file was preventing displaying of background color settings on tables and table cells
  7. BUGFIX: 1.x compatibility mode: unnecessary default values for width and height removed, default (set in config file) theme will be always used in compatibility mode
  8. BUGFIX: delete/backspace didn’t work under Gecko until user typed something
  9. BUGFIX: CSS classes were not applied to toolbar items when defined in themes
  10. BUGFIX: SpawFm plugin: DOCUMENT_ROOT was used in sample ‘fs_dir’ parameter, replaced with SPAW_ROOT
  11. BUGFIX: SpawFm plugin: use of undefined variable
  12. BUGFIX: added line breaks at the end of browser specific editor.js files. This was causing javascript errors in some environments.
  13. COSMETIC FIX: spaw2 theme was rendered with cosmetic glitch when used in XHTML 1.1 page
  14. LANGUAGE FILE ADDED: SpawFm plugin: Lithuanian
  15. LANGUAGE FILE ADDED: SpawFm plugin: Russian
  16. LANGUAGE FILE ADDED: SpawFm plugin: Dutch (Floris Brant)

Insert HTML Plugin

February 10th, 2007 by ailon

Yet another new plugin was added to the growing plugin repository of SPAW2. This time it’s “Insert HTML” plugin.

It allows users to paste arbitrary HTML code into current selection without having to switch to HTML mode. This is especially useful when you get a piece of code from sites like Flickr to insert into your page. Now it could be done in a way that is as simple as making a word bold.

Download is available through the plugin page.

Change Case Plugin

January 31st, 2007 by ailon

We have just released a “change case” plugin for SPAW v.2. As the name implies it adds two buttons to change the case of the selected text to lower or upper.

Download is available through our plugin page.

Note: keep in mind that it will only work on SPAW version 2.0.1 or higher since it uses new selectionWalk API function

SPAW Editor PHP Edition v.2.0.1 Released

January 25th, 2007 by ailon

We have just released version 2.0.1 of SPAW Editor PHP Edition.

Thanks to everyone who downloaded and tried SPAW Editor v.2! Your feedback was extremely helpful. Version 2.0.1 is available for immediate download from our download page

The most notable changes in this version are in File Manager plugin. Support for subdirectories and file renaming were added. Talking about editor core image properties dialog was updated to include image preview and constrain image proportions.

On the bug fixing side the main achievement is a fix to the “Access denied” error in some installations of Internet Explorer 6.

These are only a few of the many changes in the 2.0.1 release. Here’s a complete change log:

  1. FEATURE ADDED: SpawFm plugin: browse/create/rename/delete subdirectories
  2. FEATURE ADDED: SpawFm plugin: rename files (file extensions cannot be changed except case)
  3. FEATURE ADDED: SpawFm plugin: optional ‘fsdir’ parameter to specify absolute filesystem path to directory
  4. FEATURE ADDED: SpawFm plugin: files list sorted by name
  5. FEATURE ADDED: implemented constrain proportions feature in image properties dialog
  6. FEATURE ADDED: image preview in image properties dialog
  7. FEATURE ADDED: added insertHtmlAtSelection() API method which inserts specified string
  8. FEATURE ADDED: added selectionWalk API function allowing to specify a function which would be called on every node in current selection
  9. BUGFIX: “Access denied” error occurred on loading in some installations of IE6
  10. BUGFIX: specifying toolbarset as a parameter to constructor resulted in PHP error
  11. BUGFIX: added code to dialog.php to check if the session has already been started (in case it’s autostarted on the server)
  12. BUGFIX: SPAW was stealing focus under IE when page loads
  13. BUGFIX: background image button wasn’t working in table and table cell properties dialogs
  14. BUGFIX: focus wasn’t set to the currently visible editing area when switching between html/design modes which caused minor problems in IE
  15. BUGFIX: absolute URLs were not correctly stripped if the URL was below spaw’s directory (moved empty.html into it’s own directory)
  16. BUGFIX: SpawFm plugin: use full URL for images preview
  17. BUGFIX: removed onfocus event handler from iframe’s because it was called constantly in IE in floating toolbar mode
  18. BUGFIX: toolbar wasn’t correctly positioned in floating mode under Gecko when document was with XHTML doctype
  19. BUGFIX: enctype attribute was lost on FORM tags
  20. BUGFIX: value and type attributes were lost on input tags under IE (type=”text” only)
  21. IMPROVEMENT: added window.focus() to dialogs to activate dialogs when they load or when returning from other dialogs (like file manager)
  22. IMPROVEMENT: when returning from one dialog to another (like from file manager to image properties) focus is set to appropriate field
  23. IMPROVEMENT: OK button is now triggered by pressing enter in dialogs
  24. COSMETIC IMPROVEMENT: optimized dialog resizing algorithm a little (so there’s a little less flickering under IE and Opera)
  25. COSMETIC IMPROVEMENT: dialogs are resized and centered only when they open (when navigating through directories in file manager it won’t resize and center)
  26. COSMETIC IMPROVEMENT: hyperlink dialog wasn’t sized properly
  27. COSMETIC IMPROVEMENT: dialogs open centered

CMS List

January 24th, 2007 by ailon

We have a list on our site with links to the special adaptations of SPAW Editor to be included in some widely known content management and other systems. We thought that it would make sense to have a similar list of software including SPAW Editor as their main (or at least distributed with the system core) WYSIWYG editor. We get questions about such systems from visitors coming to our site searching for something more than a WYSIWYG control, so such a list could answer their questions and also bring new users to you.

So, in case you are a developer or owner of such a system (no matter GPLed or commercial) and you don’t mind getting a couple additional visitors, drop us a line with the name of your software, short description, URL, which version of SPAW is included and licensing scheme to either spaw@solmetra.com or comment to this post.

PHP Vulnerability Possibly Affecting SPAW 1.x Installations

January 19th, 2007 by ailon

In case you are running SPAW 1.x on PHP4 with version number below 4.4.3 or PHP5 version below 5.1.4 and have register_globals turned on, you should upgrade SPAW to version 1.2.4 or version 2.

SPAW Editor PHP Edition version 1.2.4 can be downloaded from here. Package to upgrade version 1.2.3 to 1.2.4 is available here.

In case you are running version earlier than 1.2.3 and don’t want to upgrade, just open the file dialogs/img_library.php and change the line 16:

unset($spaw_imglib_include);

to:

if (isset($spaw_imglib_include)) die(’set this in configuration’);

Custom Button Plugin

January 16th, 2007 by ailon

We are asked frequently about ways of adding some custom content into editor. So, we decided to release a plugin which does just that. It’s not a ready to use plugin but rather a plugin template. It includes an empty button image and a code that, when the button is pressed, takes currently selected content from editing area and wraps it in a template code specified in config file.

As always it is available for immediate download from our plugin page

ieSpell Plugin

January 12th, 2007 by ailon

We have implemented a plugin for SPAW2 which adds a button to invoke ieSpell to spellcheck current SPAW page. Obviously since ieSpell is IE add-on it works only in IE on Windows.

Get ieSpell here and SPAW2 plugin here.

Image Popup plugin for SPAW Editor v.2

January 11th, 2007 by ailon

We thought that image popup functionality found in SPAW Editor v.1.x was too specific to be included in v.2 core but many of you have missed it. So, now we are releasing it as a plugin. Download is available from our Extend page.

Enjoy!

Stable SPAW Editor 2.0.0 is Out!

January 10th, 2007 by ailon

We have just released final 2.0.0 version of SPAW Editor PHP Edition. This release marks a great milestone in the history of SPAW Editor — one of the greatest WYSIWYG editors on the market.

We have implemented industry unique tabbed multi-document interface, floating/shared toolbars, resizeable editing area, Opera support and many other exciting new features.

One of the most exciting news in v.2 is it’s modular architecture allowing for virtually unlimited possibilities in extending core functionality. Rich API provides developers with easy access to editor’s properties, so you should expect numerous plugins developed by both Solmetra and various 3rd parties added to our plugins page in the near future.

SPAW Editor PHP Edition v.2.0.0 is available for immediate download from our download page. License wise it is released under the same scheme as version 1 which proved to be extremely flexible and fair: free under the terms of GPL and commercial licenses for non-GPL compatible use.

We would greatly appreciate your feedback through our forums, blog comments or email. And don’t forget to spread the word about SPAW Editor v.2!

Below is a changelog of changes made after SPAW Editor 2.0.0 RC release:

  1. FEATURE ADDED: font tags replaced with span equivalents in xhtml rendering mode
  2. FEATURE ADDED: SpawFm plugin: automatically select uploaded file
  3. FEATURE ADDED: SpawFm plugin: allow specifying max width and/or height for uploaded images
  4. FEATURE ADDED: SpawFm plugin: ‘chmod_to’ setting allows to specify what mode the uploaded file should be tried to chmod to.
  5. FEATURE ADDED: added SpawDialog.returnValue method which handles callback function calls in dialogs
  6. FEATURE ADDED: added trimLineBreaks and htmlEncode methods to SpawUtils
  7. CHANGE: changed SPAW v.1 compatibility code to use default theme instead of SPAW1 (spaw1 theme will be available as a separate download only)
  8. BUGFIX: spaw2 theme css file had reference to non-existing and not needed toolbar background image
  9. BUGFIX: in some cases line breaks in code were multiplying under Gecko
  10. BUGFIX: removed some unnecessary page hidding and showing calls under Gecko
  11. BUGFIX: context menu was incorrectly positioned under Gecko when used inside XHTML doctype documents
  12. BUGFIX: some Flash (embed) attributes were lost while switching between design/html modes (should still use embed tags for flash rather than object because IE loses embed inside object tag and doesn’t handle object right in wysiwyg mode)
  13. BUGFIX: Flash placeholder image wasn’t always displayed under Gecko
  14. BUGFIX: horizontal rule was inserted in IE with id=”null”
  15. BUGFIX: images under MSIE: images where sometimes inserted in the parent document, image property editing produced errors, image properties where unavailable from context menu
  16. BUGFIX: added ALT attributes to img tags in theme templates
  17. BUGFIX: SpawFm plugin: <?= replaced with <?php echo
  18. BUGFIX: editor wasn’t correctly resized when making it smaller under Gecko and spaw2 theme
  19. BUGFIX: all attributes except class and style were stripped from span, div and font tags
  20. BUGFIX: SpawFm plugin: variable name mistype
  21. LANGUAGE FILE ADDED: Dutch
  22. LANGUAGE FILES ADDED: ported language files from SPAW v.1
  23. TWEAK: added some CSS properties to theme stylesheets to protect parent page styles from interfering with SPAW’s interface
  24. DOCUMENT ADDED: plugin developer’s guide