WP Manifestindependent plugin directory
manifest / editor / autolink-text

Autolink Text

Autolink text bot for WordPress RTC

by Alex Kirk · github.com/akirk/autolink-text · website

1stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/akirk/autolink-text/archive/refs/heads/main.zip

Readme

Autolink Text

Autolink Text is a WordPress/Gutenberg prototype that uses the same PHP-only bot approach as Shouter to participate in Gutenberg's RTC sync stream.

It watches completed paragraph events and replaces the first configured matching term with an anchor tag. Configured text color, background color, bold, and italic settings are applied to the generated link. The bundled Playground blueprint seeds an example that links WordPress Playground to https://playground.wordpress.net/ with playgr as an alias.

The plugin has a settings page at Settings -> Autolink Text where a WordPress user can be selected as the bot identity and linked terms can be configured as individual items. Each item shows term and URL fields first, with advanced options for aliases, text color, background color, bold, italic, first-occurrence-only matching, case-sensitive matching, and replacing matched aliases with the configured term spelling.

Open Autolink Text in WordPress Playground.

The main plugin entry file is autolink-text.php.

The current implementation is intentionally narrow. It handles top-level paragraph completion, plain paragraph content, and the subset of Gutenberg/Yjs updateV2 payloads needed to replace a matched text range. It does not enqueue editor JavaScript and does not expose a separate public mutation endpoint.

Composer and Dist Branches

composer.json points Composer at the upstream GitHub repository for maxschmeling/y-php:

composer install

The repository ignores vendor/; install Composer dependencies locally before running the plugin or tests.

Read the full README on GitHub →