View Single Post
Old 11-02-2021, 06:40 AM   #4
abraum
Enthusiast
abraum began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Aug 2020
Device: Tablet
Quote:
Originally Posted by lomkiri View Post
You have also a button "insert a tag" in the page's toolbar.
i can add a tag to the button but not insert a tag using a shortcut, e.g. ALT+F for 'figcaption'?

Quote:
Originally Posted by lomkiri View Post
Snippets do that. See this Kovid's post.
that's not what i mean. in my books very offen i have this situation:

Code:
<img .../>
<p>text</p>
and i want this

Code:
<figure>
<img .../>
<figcaption>
<p class="caption">text</p>
</figcaption>
</figure>
can i highlight the first code and then "do something", e.g. running a script with the highlighted text as input and output the second text?

there is a plugin called "Action Chains" and i've installed it. but i can't find it in the calibre editor? the plugin only works in the normal calibre GUI not in the calibre editor?
abraum is offline   Reply With Quote