You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im attempting to do a search and replace. Replacing the text in a range with a link.
I have it creating the link properly and that all seems to be working. However the on-change callback is not being fired. I added postEditor.scheduleDidUpdate(); but that didn't change it.
I attempted to walk through the code and it seemed to be calling the isDirty call backs, but my ember call back (passed as on-change) was not called.
if (range) {
editor.run(postEditor => {
let position = postEditor.deleteRange(range);
let link = postEditor.builder.createMarkup('a', {href: linkURL});
postEditor.insertTextWithMarkup(position, linkName, [link]);
postEditor.scheduleDidUpdate();
});
}
The text was updated successfully, but these errors were encountered:
Im attempting to do a search and replace. Replacing the text in a range with a link.
I have it creating the link properly and that all seems to be working. However the
on-change
callback is not being fired. I addedpostEditor.scheduleDidUpdate();
but that didn't change it.I attempted to walk through the code and it seemed to be calling the isDirty call backs, but my ember call back (passed as
on-change
) was not called.The text was updated successfully, but these errors were encountered: