Skip to content

Kirby 5.0.4

$file->dragText()

Provides a kirbytag or markdown tag for the file, which will be used in the panel, when the file gets dragged onto a textarea

$file->dragText(string|null $type = 'auto', bool $absolute = false): string

Parameters

Name Type Default Description
$type stringornull 'auto' (auto|kirbytext|markdown)
$absolute bool false

Return type

string

This method modifies the existing $file object it is applied to and returns it again.

Parent class

Kirby\Panel\File