[Xsltforms-support] access to user selection?
Brought to you by:
alain-couthures
From: C. M. Sperberg-M. <cm...@bl...> - 2016-07-05 19:32:03
|
Is there any way, in XSLTForms, to get access to the string of characters the user has selected with a mouse? For example, imagine an xf:input bound to a PCDATA element, in a mixed-content document. The user would like to tag some part of the text with a sub-element, e.g. to change <p>Nobody does humility better than me.</p> to <p><emph>Nobody</emph> does humility better than me.</p> I have in mind a display of the text node, followed by a button reading (say) "Tag selected text as 'emph'". Possible? Possible without writing functions in Javascript? Not possible? best, Michael p.s. Yes, I am aware of the TinyMCE editor; I am trying to see how far one can go without it or something analogous. (And the last time I tried, I couldn't get TinyMCE to do what I wanted. I'll try again sometime, but my question remains.) -- **************************************************************** * C. M. Sperberg-McQueen, Black Mesa Technologies LLC * http://www.blackmesatech.com * http://cmsmcq.com/mib * http://balisage.net **************************************************************** |