Reference editor within Aloha


I’ve to implement a glossar (dictionary).
This could be a page full of entry content elements in an alphabetical order (e.g. a definition list).

While editing pages in neos using aloha I want to have a reference editor, working similar to the link editor.
It should generate something like:

 <span data-glossar-id="node-567555556">Word to be explained</span>
 <span id="node-567555556" style="displpay:none;">Explanation of the word</span>

A mouse over should reveal the explanation by CSS or JS.

Any ideas how this could be done?