Open dpierangeli opened 3 years ago
I've also see that calling $("editor").trumbowyg('html') doesn't get the inserted text (is present in the editor). If the user write a character with the keyboard then all the text is present in $("editor").trumbowyg('html') .
I think I need to add something like that: https://github.com/Alex-D/Trumbowyg/issues/162#issuecomment-849308087 Can you try this and check if you get the event triggered?
Yes, that event is fired (one event for letter, apparently), but in the event (or after, by using a timer) the value of the component is not updated.
I use
$("editor").trumbowyg('html')
to read the value and it returns empty string (in the 'UI' i see the dictated value).
There is a function to call to force the update of the component from the 'UI'? If the user opens the keyboard and presses a key the value is then correct.
I have the same problem too.
There is a way to retrieve UI value?
You can create a plugin to access to the Trumbowyg internal functions, then call trumbowyg.syncCode()
on any event you want :)
Maybe this bug be fixed in 2.27.2? The code: https://github.com/Alex-D/Trumbowyg/pull/1364/files
I'm using Trumbo 2.24.0 on an Ipad (ios 14.5).
I've used the tbwchange event, but when a user uses dictation to write into the editor the event isn't fired.
Safari 14.1.2
How to reproduce?
use this on an ipad: https://jsfiddle.net/9bv72kh0/
and use dictation on the keyboard to write into the editor. The event will not be fired