344 paintbrush Fix Selection

[[selection]] is perfect with the new replaceRange, but when you don’t select any text the tag sends the whole draft, meanwhile the selection_start and selection_length tags still return based on cursor position. This action normalizes the behavior with two new tags, sel_start and sel_length.

Posted by @onetapless

Install in Drafts 4   Migrate to Drafts 5

Action Steps (1)

Action script@2x Script Show detail


After Success Default
Log Level Error


comments powered by Disqus