You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment each Tool could only be Block Tool, Inline Tool or Block Tune. It's sufficient for most of the cases. However, there are cases when a Tool needs access to capabilities of two or even all of those options. A good example is a Footnote Tool (or even Comments Tool): user should be able to select an inline fragment and link some text to it (Inline Tool capabilities). The text then could be displayed next to the Block (Block Tune capabilities) or as a separate Block in the document (Block Tool capabilities).
Proposal
The main gap for such Tools as Footnote/Comments — there is no way to share data between the Tools. My proposal is to have a Composite Tool interface which can provide several Tools of the same or different types. The wrapper would allow those Tools to have a shared state.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem statement
At the moment each Tool could only be Block Tool, Inline Tool or Block Tune. It's sufficient for most of the cases. However, there are cases when a Tool needs access to capabilities of two or even all of those options. A good example is a Footnote Tool (or even Comments Tool): user should be able to select an inline fragment and link some text to it (Inline Tool capabilities). The text then could be displayed next to the Block (Block Tune capabilities) or as a separate Block in the document (Block Tool capabilities).
Proposal
The main gap for such Tools as Footnote/Comments — there is no way to share data between the Tools. My proposal is to have a Composite Tool interface which can provide several Tools of the same or different types. The wrapper would allow those Tools to have a shared state.
Possible interface:
When registered via
use, the Core would get thetoolsarray and register each tool individually.Beta Was this translation helpful? Give feedback.
All reactions