Overview
The full editor with a PHP back end. Upload an image from Insert Gallery: it is stored in your own sandbox folder on the server, upright and without EXIF data. Then submit to see the HTML the server keeps.
The PHP for this demo
require 'richtexteditor/phphtmleditor/autoload.php';
use PhpHtmlEditor\Editor;
$editor = new Editor('Editor1');
$editor->toolbar = 'full';
$editor->policyFile = 'default.config'; // members may upload
$editor->handleRequest(); // uploads + gallery, before any output
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$html = $editor->posted(); // sanitized
}
echo $editor->render();