-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getValue() returns old value after search & replace function #46
Comments
Hi @sirbris, Sorry for the late reply. Unfortunately the search & replace functionality is completely provided by ace. So there is no way to create a custom hook etc. But I think it is still possible to work around this. Some time ago the If that's not possible or doesn't work the way I thought it would, it would require a major change to the Please let me know if this has pointed you in the right direction or solved the problem. Take care, |
If that doesn't work you could take a look at the ace/src/main/java/de/f0rce/ace/AceEditor.java Lines 1305 to 1323 in 9e6f600
|
Works if you do a server roundrip afterwards. So in my case i made somthing like this
and called it by the executeJs() method on the AceEditor object
//do what you want to do with the new value :)
|
After using search & replace in your editor, the getValue() method returns the old value... would it be possible to trigger a valueChange event after user replaced text via that function or any other method to get the real client side value?
The text was updated successfully, but these errors were encountered: