spaw2 挺漂亮的,不输于 fckeditor 和 tinymce。

SPAW Editor PHP Edition version 2.0 新增功能:

- completely redesigned and rewritten modular architecture

- tabbed multi-document interface

- floating/shared toolbars

- resizable editing area

- context menu

- file manager plugin

- support for Opera 9 and Safari 3 browsers

下载、解压、上传到www服务器,config/config.default.php 改名为 config/config.php,然后打开 http://yourdomain.com/spaw2/demo/demo.php 查看例子。 详细说明在 integrators.html

在 config/config.php 中可以设置属性。也可以在 php页 中设置属性

SpawConfig::setStaticConfigValue(’default_height’,'500px’);

接收参数用 $_POST[spaw1]

SpawEditorPage constructor accepts 4 arguments: $name - the name of the page (you can read the code edited on this page by reading $_POST[$name] after submission), $caption - this is what is shown to the user on page’s tab, $value - initial page content and $direction - text direction (’ltr’ - for left-to-right, ‘rtl’ - for right-to-left, default - ‘ltr’).

我做了个测试,以备以后之需。

查看更多wysiwyg 相关日志