Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy pasting text from one editor instance to another does not copy the KaTeX in it #399

Closed
dgandhi1993 opened this issue Jun 14, 2020 · 7 comments
Labels
Milestone

Comments

@dgandhi1993
Copy link

When I try to copy the text written in an editor instance with some KaTeX code, to another editor instance, the KaTeX code fails to copy, instead, it converts into text along with the KaTeX syntax.
For example, I tried copying:
image
The pasted value looks like this:
image
This is a bad experience for users who have multiple editors on the same page and want to copy-paste between such editors.

@JiHong88 JiHong88 added the bug label Jun 15, 2020
@JiHong88 JiHong88 added this to the 2.30.1 milestone Jun 15, 2020
JiHong88 added a commit that referenced this issue Jun 15, 2020
fix: maintain style of span tag when pasting
add: core-managedTagsInfo, plugins-managedTags
@JiHong88
Copy link
Owner

The 2.30.1 version has been updated.
If this issue has not been resolved, please reopen this issue.
Thank you.

@dgandhi1993
Copy link
Author

@JiHong88 Facing similar issue where I loose SVGs inside the formula.

Steps to reproduce.

  1. Add a formula to an editor, let's say "\sqrt2i". This will add the formula perfectly.
  2. Cut this formula and try repasting it.
  3. You will see that you would have lost the square root symbol.

However, if you click on the edit button of the formula, it will open the Formula modal with the correct notation (i.e. including the symbol). If you submit this modal, the symbol starts appearing again in the editor as well.

@JiHong88 JiHong88 reopened this Aug 26, 2020
@JiHong88 JiHong88 modified the milestones: 2.30.1, 2.33.0 Aug 26, 2020
@JiHong88
Copy link
Owner

@dgandhi1993 This issue is resolved.
I'll notify you after updated the version.

@JiHong88
Copy link
Owner

JiHong88 commented Sep 3, 2020

The 2.33.0 version has been updated.
If this issue has not been resolved, please reopen this issue.
Thank you.

@dgandhi1993
Copy link
Author

@JiHong88 This issue has started popping up when using vector symbols.
Try adding \vecA using the Formula modal.
Now switch to the code view and back to editor view.
You will see the arrow on top of A would be gone.

This happens with me when I try to add a vector KaTeX html to the editor using setContents().

Also, while doing so I noticed while adding \overrightarrow{AB} as LaTeX to the editor, the editor representation is a little off.

@JiHong88 JiHong88 modified the milestones: 2.33.0, 2.34.1 Oct 29, 2020
@JiHong88
Copy link
Owner

@dgandhi1993 When inserting HTML string, "" in "data-exp" disappears.
Please use the new "Katex" tag when after update the version.

@JiHong88
Copy link
Owner

The 2.34.1 version has been updated.
If this issue has not been resolved, please reopen this issue.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants