$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 | string ornull |
'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.