- htmlviewer: IEditor + Bridge + srcdoc iframe template + content controller - text app: open() bridges text/html to htmlviewer template - idempotent install.sh for re-deployment after app updates - iPhone-tested 2026-09-11
9 lines
408 B
PHP
9 lines
408 B
PHP
<?php
|
|
$_SERVER['HTTP_USER_AGENT']='test';
|
|
define('PHPUNIT_RUN', true);
|
|
$_SERVER['REQUEST_URI']='/index.php';
|
|
require "/var/www/html/lib/base.php";
|
|
$m = \OC::$server->get(\OCP\DirectEditing\IManager::class);
|
|
$ev = new \OCP\DirectEditing\RegisterDirectEditorEvent($m);
|
|
\OC::$server->get(\OCP\EventDispatcher\IEventDispatcher::class)->dispatchTyped($ev);
|
|
echo json_encode(array_keys($m->getEditors())), PHP_EOL; |