Skip to content

Support selection as parameter for replaceText - so we can transform selected text from smart fragments #289

@RealRaven2000

Description

@RealRaven2000

Usage:

We want to do replacements in the selected text, for instance, the string

Menu >> submenu >> command

should be transformed into

Menu » submenu » command

Additionally we could add some markup to display the text in italic (or wrap a layout span around it). Example for such a smart fragment:

<i>%replaceText(">>","»",selection)%</i>

Ideally the text (html) should still be selected after the replacement operation, this way we could concatenate multiple such commands for some powerful formatting.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions