Michal242
(Michal Lichvar)
January 30, 2020, 2:19pm
1
any idea how to trigger onChange event from client?
should I somehow change this js?
ed.on('change', function(e) {
console.error('Editor was changed');
currentValue = ed.getContent();
});
can it be done through setConfig?
Matti
(Matti Tahvonen)
January 30, 2020, 5:32pm
2
Michal242
(Michal Lichvar)
January 31, 2020, 7:52am
3
I would like to catch changes from client:
tinyResultOutputText.addValueChangeListener(event -> {
if (event.isFromClient()) {
...
}
});
Apperantly, event is not triggered on/passed to server side.
Matti
(Matti Tahvonen)
January 31, 2020, 7:56am
4
Currently changes are pushed to the server side only when you move the focus out of the text editor. This is to minimize the client-server communication.
So would you like to listen to the value changes on the server side while the user is editing the content?
Michal242
(Michal Lichvar)
January 31, 2020, 8:20am
5
I fact I need just the first edit. I want to disable some components, when user make first change in text.
Matti
(Matti Tahvonen)
January 31, 2020, 11:06am
6
Makes sense, would you open an enhancement issue for it to GitHub project page? Would probably be quite easy to do.
Martin610
(Martin Hoffhenke)
March 30, 2022, 10:06am
7
Can you tell me if there has been implemented anything like this in the meantime?
Can’t find something like setValueChangeMode() in version 3.2.0.