I'm forwarding the topic in issue linkenhancer#118 by @thobgg, as it may need to be addressed in your project.
If only command insertLink and insertImage is used and the changes are saved immediately afterwards, the changes will not be applied to the textarea and not persisted by the application.
Perhaps wrapSelection should implicitly call fireChange, or the action function of insertLink and insertImage should be extended to include this call.
I'm forwarding the topic in issue linkenhancer#118 by @thobgg, as it may need to be addressed in your project.
If only command insertLink and insertImage is used and the changes are saved immediately afterwards, the changes will not be applied to the textarea and not persisted by the application.
Perhaps wrapSelection should implicitly call fireChange, or the action function of insertLink and insertImage should be extended to include this call.