I have an editor, and some additional navigation components inside a common parent. The idea is, when you click certain buttons, the editor jumps to certain parts of the text. I am doing this in another app by simply calling
editor.find(searchRegex,{
backwards: false,
wrap: true,
caseSensitive: false,
wholeWord: false,
regExp: true,
});
With this react component, I have no way to access this functionality. It looks like if the ReactAce
class implemented a find
method as a passthrough to editor.find
, I could call that from the parent using react's ref functionality. It feels a bit odd, but it should work.
Would you be against adding such a thing? It would probably be preferable to proxy methods than to just allow access to the editor directly, no?