Skip to content
Discussion options

You must be logged in to vote

I was able to solve my issue (right after making the post, as usual) by using document.replace instead of document.compose.

    final change = document.replace(
      position - candidate.length + firstIndex,
      contentLength,
      EmbeddableObject(
        'math',
        inline: true,
        data: {'formula': candidate.substring(firstIndex + 1)},
      ),
    );

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Yoeri-z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant