mirror of
https://github.com/cosmocode/dokuwiki-plugin-imgpaste.git
synced 2025-07-23 02:55:13 +00:00

This implements handling of images in pasted HTML when running with Prosemirror. When a user pastes HTML which contains images, the plugin will try to download those images and upload them as if they had been pasted directly. For this to work, the images need to be references as full URLs in the HTML and need to be publically accessible (eg. the DokuWiki HTTPClient needs to be able to download them). This feature has been mostly tested with copy'n'paste from Google Docs but should also work when copy'n'pasting from arbitrary websites.
9 lines
84 B
PHP
9 lines
84 B
PHP
<?php
|
|
|
|
namespace dokuwiki\plugin\imgpaste;
|
|
|
|
class Exception extends \Exception
|
|
{
|
|
|
|
}
|