[tw5] Creating custom excise dropdown

Hi,

I would like to create a custom excise dropdown. I’d rather not modify anything related to core. So I cloned:

  • $:/core/ui/EditorToolbar/excise-dropdown to $:/davout/ui/EditorToolbar/excise-dropdown
    • Came up with:
  • $:/core/ui/EditorToolbar/excise to $:/davout/ui/EditorToolbar/excise
    • changed dropdown to $:/davout/ui/EditorToolbar/excise-dropdown
  • $:/core/modules/editor/operations/text/excise.js to $:/davout/modules/editor/operations/text/excise.js
    A few questions. (BTW, I’m using 5.2.0)
  1. Am I going about this the right way? If this is even possible?

  2. How can get my button to use my $:/davout/modules/editor/operations/text/excise.js rather than the default $:/core/modules/editor/operations/text/excise.js

  3. In $:/core/ui/EditorToolbar/excise-dropdown what is $config-title$ referring to?
    Thanks.

It looks like you’re doing well. It might help if you explained what you want your new excise to do. It might not require a new js script.

Thanks for the reply.

I see that my post did not include my image. Let’s try this temp/excise-dropdown.png at main · davout1806/temp · GitHub

Say we have the following tiddler ABC with Tags: Example, Contrived

Line 1

Line 2

Line 3