-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
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();
});
}
Metadata
Metadata
Assignees
Labels
No labels