Quote:
Originally Posted by hpstricker
Is it possible to add buttons to the Sigil-toolbar (performing some action in the HTML source with respect to the actual cursor position or selection)?
For example: - "wrap selected text inside <span class='x'>"
- "wrap the active paragraph inside <div class='y'>"
Do I have to do it in the C++ sources, or is there an easier way?
|
the first 2 on your list can be done by using 'Clips' on selected text (in code view). Not with 'Buttons', but as a menubar:
View: Toolbars: Clip Bar: Tick
Then Drag-n-re
Dock it under the Icon Bars (see my layout image) to get the bar Horizontal
All clips that are added,
that are NOT moved to a group, in the Clip Editor appear here. (see cilip ed image)
Newbies Note The layout of buttons shown is
not the default. No special code needed, just drag and drop the sections into new locations .