Hello,
This is possible with, for example, a little javascript.
With jQuery:
jQuery(function() {
jQuery("#my-element").click(function(e) {
var report = decoMistape.getSelectionData();
if(report)
decoMistape.showDialog(report);
});
});
Plain javascript
document.getElementById('my-element').addEventListener( 'click', function(e) {
var report = decoMistape.getSelectionData();
if(report)
decoMistape.showDialog(report);
});
You could also with a simulated key press and using dispatchEvent.
After you see the scenario to indicate to the user on mobile.
-
This reply was modified 6 years, 1 month ago by
papayo.
-
This reply was modified 6 years, 1 month ago by
papayo.
@papayo I like the idea, please, could you send the code inside of the plugin?, since the developer is not longer answering the plugin issues, maybe we can fork the plugin and to create those requeriments we need.
Here the place where we can start to upgrade the pugin.
https://github.com/my-language-skills/simple-spelling-notifications
Hello,
The code is not necessarily to be included in the plugin, it works outside. it can be integrated into the plugin too. I will take care of doing this in the coming days, at the latest Friday. With a workaround for mobiles in order to detect the selection of text and a mistape text correction reminder.
I would also provide the translation of the plugin in French and Italian.