Skip to content

Kirby 5.0.4

$page->dragText()

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

$page->dragText(string|null $type = null): string

Parameters

Name Type Default Description
$type stringornull null (auto|kirbytext|markdown)

Return type

string

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

Parent class

Kirby\Panel\Page