Skip to content

Commit 297ed24

Browse files
committed
docs: drop RichDocumentsMobileInterface from direct editing webview docs
richdocuments now uses the generic DirectEditingMobileInterface; update the interface object description and code examples accordingly. AI-assistant: Claude Code 2.1.160 (claude-opus-4-8) Signed-off-by: Julius Knorr <jus@bitgrid.net>
1 parent e98e081 commit 297ed24

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

developer_manual/digging_deeper/direct_editing.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -346,11 +346,9 @@ Android and iOS apps; it is not enforced by the server.
346346
The interface object
347347
^^^^^^^^^^^^^^^^^^^^^
348348

349-
The native client injects a named interface object into the page. The editor page
350-
sends messages through it. Editors based on the generic direct editing flow use
351-
the name ``DirectEditingMobileInterface``; ``richdocuments`` uses its own
352-
``RichDocumentsMobileInterface`` (it carries a richer, Collabora-specific message
353-
set). A page should feature-detect the object before using it.
349+
The native client injects a named interface object, ``DirectEditingMobileInterface``,
350+
into the page, and the editor page sends messages through it. A page should
351+
feature-detect the object before using it.
354352

355353
Two transports are used, picked by which one the host provides:
356354

@@ -363,7 +361,7 @@ exposes one method per message name. Arguments, if any, are passed as a single
363361
// no arguments
364362
window.DirectEditingMobileInterface.close()
365363
// with arguments
366-
window.RichDocumentsMobileInterface.hyperlink(JSON.stringify(values))
364+
window.DirectEditingMobileInterface.hyperlink(JSON.stringify(values))
367365
368366
**iOS — script message handler.** All messages go through one ``postMessage``
369367
handler. A message with arguments is sent as an object with ``MessageName`` and
@@ -374,7 +372,7 @@ handler. A message with arguments is sent as an object with ``MessageName`` and
374372
// no arguments
375373
window.webkit.messageHandlers.DirectEditingMobileInterface.postMessage('close')
376374
// with arguments
377-
window.webkit.messageHandlers.RichDocumentsMobileInterface.postMessage({
375+
window.webkit.messageHandlers.DirectEditingMobileInterface.postMessage({
378376
MessageName: 'hyperlink',
379377
Values: values,
380378
})

0 commit comments

Comments
 (0)