Frequently asked questions
Getting started
What is PHP HTML Editor?
A WYSIWYG HTML editor for PHP sites. The browser side is RichTextEditor; the PHP side stores uploads, lists the image gallery, applies each user's permissions and cleans the posted HTML.
Which PHP versions are supported?
PHP 8.0 or later; it is tested with PHP 8.3 and 8.5. It needs the standard DOM extension, and GD for images. See the requirements page.
Does it need Composer or a database?
No. Copy the richtexteditor folder and require include_rte.php or phphtmleditor/autoload.php. Your page decides where the HTML is saved.
Does it work on IIS?
Yes: IIS with PHP (FastCGI), Apache and nginx. The deployment guide covers write permissions and upload limits for each.
Uploads and files
Where do uploaded files go?
To the folders your policy names (StoragePath), by default /uploads/images, /uploads/documents and /uploads/media. Each storage can have its own folder, allowed types, size limit and quota.
Can visitors upload a PHP file or a web page?
No. PHP, ASP, HTML, SVG, scripts and server configuration files are never stored, whatever a policy's Extensions list says. Images are checked by their content, not their name.
What happens to photos from phones?
They are rotated upright, resized to your policy's maximum and saved again without EXIF data, so the GPS position and camera details are not published.
How do I give users different permissions?
Choose the policy file in your page code from your own login: guest.config, default.config, admin.config or your own. The browser never chooses it and nothing in a request can widen it.
Why does an upload fail with "session has expired"?
Uploads carry a per-visitor token from the PHP session. Call MvcInit() or handleRequest() before the page prints anything, and make sure sessions work on your server.
Content
Is the posted HTML safe to show?
Read it with GetPostedHtml() or $editor->posted(): scripts, event handlers, javascript: links, forms, SVG and unsafe embeds are removed on the server. Never print $_POST directly.
Can I paste from Word?
Yes. Headings, lists, tables and pictures are kept; Office markup is removed.
Can I export to Word or PDF?
Yes, from the editor's menu: a .docx file, and a tagged PDF with selectable text.
Licensing and upgrades
How is it licensed?
One-time purchase, perpetual licenses: domain, IP, small business (10 domains), developer, redistribution, developer team, enterprise and source code. See pricing.
I own Rich Text Editor for PHP. What does the upgrade cost?
Half the price of the same license. Your pages keep working; see the upgrade guide.
What support is included?
90 days of free technical support and free minor version updates.