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
- Write to [email protected] with your order number, or the e-mail address you bought with, and the license you want.
- We check your purchase and send you the link to order the upgrade at half price in Client Center.
- After payment, enter your domain in Client Center and download your licensed
rte.js. It replacesrichtexteditor/rte.jsfrom the download; the old license file is not used any more.
How to upgrade a site
- Back up your site, including the old
richtexteditorfolder and itsconfigfiles. - Replace the
richtexteditorfolder with the new one. Copy your own policy files (for exampledefault.config,admin.config) into the newrichtexteditor/configfolder: they are read unchanged. - Make the upload folders your policies name writable by the web server (on IIS, the application pool identity or IIS_IUSRS).
- Make sure
MvcInit()is called before your page writes any output, as before. It now also starts the PHP session that protects uploads. - 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,StyleBlackListToolbarandSkin: old names are mapped to the new toolbars and skins (for exampleribbonbecomes 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. UseSetConfig()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
Extensionslists 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.