Skip to main content
PHP HTML Editor

Upgrade from Rich Text Editor for PHP

If you bought Rich Text Editor for PHP, you upgrade to PHP HTML Editor for half the price of the same license. Your pages keep working: the classic API and your policy files are still there.

How to order the upgrade

  1. Write to [email protected] with your order number, or the e-mail address you bought with, and the license you want.
  2. We check your purchase and send you the link to order the upgrade at half price in Client Center.
  3. After payment, enter your domain in Client Center and download your licensed rte.js. It replaces richtexteditor/rte.js from the download; the old license file is not used any more.

How to upgrade a site

  1. Back up your site, including the old richtexteditor folder and its config files.
  2. Replace the richtexteditor folder with the new one. Copy your own policy files (for example default.config, admin.config) into the new richtexteditor/config folder: they are read unchanged.
  3. Make the upload folders your policies name writable by the web server (on IIS, the application pool identity or IIS_IUSRS).
  4. Make sure MvcInit() is called before your page writes any output, as before. It now also starts the PHP session that protects uploads.
  5. Read the posted HTML with RichTextEditor::GetPostedHtml("Editor1") instead of $_POST["Editor1"]: it removes scripts and other active content.

What works as before

  • new RichTextEditor(), Name, Text, Width, Height, MvcInit(), GetString(), Render(), ToString()
  • SecurityPolicyFile, SetSecurity(), LoadConfigFile(), LoadHTML(), LoadFormData(), PlainText()
  • ReadOnly, ContentCss, MaxTextLength, MaxHTMLLength, EnterKeyTag, PasteMode, URLType, ResizeMode, TagBlackList, AttrBlackList, StyleBlackList
  • Toolbar and Skin: old names are mapped to the new toolbars and skins (for example ribbon becomes the full toolbar).

What is different

  • Settings of the old editor with no counterpart (for example ShowRulers, EnableIEBorderRadius, ToolbarItems) are accepted and ignored, so old pages do not fail. Use SetConfig() with the new option names to customize the toolbar; see the classic API reference.
  • BBCode output and editing a complete HTML document (with its <head>) are not available. Markdown is.
  • HTML, SVG and script files can no longer be uploaded, even if an old policy's Extensions lists them: shown from your site, they could run script.
  • Uploaded photos are re-saved without EXIF and GPS data and resized to your policy's limit.