Skip to content

Improve inline formula input #11175

Closed
Closed
@TCOTC

Description

@TCOTC
Contributor

改进在 $$ 之间输入与粘贴(行级公式)

一、在 $$ 之间输入行级公式时,会吞掉首个字符:

gongshi

二、在 $$ 之间粘贴行级公式时,页面会滚到开头(焦点移动到了第一个块):

gongshi2

在 $$ 之间输入公式会自动跳转到文章开头 - 链滴

Activity

changed the title [-]在 \$\$ 之间输入行级公式时,会吞掉首个字符[/-] [+]在 $$ 之间输入行级公式时,会吞掉首个字符[/+] on Apr 28, 2024
changed the title [-]在 $$ 之间输入行级公式时,会吞掉首个字符[/-] [+]改进在 $$ 之间输入行级公式[/+] on Apr 28, 2024
changed the title [-]改进在 $$ 之间输入行级公式[/-] [+]改进在 $$ 之间输入与粘贴(行级公式)[/+] on Apr 28, 2024
added this to the 3.0.12 milestone on Apr 28, 2024
changed the title [-]改进在 $$ 之间输入与粘贴(行级公式)[/-] [+]Improve inline formula input[/+] on Apr 28, 2024
Vanessa219

Vanessa219 commented on Apr 28, 2024

@Vanessa219
Member

第一个问题是由于弹出公式时输入框是全选状态,再输入就会被替换。

added a commit that references this issue on Apr 28, 2024
TCOTC

TCOTC commented on Apr 28, 2024

@TCOTC
ContributorAuthor

第一个问题是由于弹出公式时输入框是全选状态,再输入就会被替换。

所以会特殊情况特殊处理吗?

Vanessa219

Vanessa219 commented on Apr 28, 2024

@Vanessa219
Member

这个代码上不好判断,特殊情况先缓缓。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@Vanessa219@TCOTC

      Issue actions

        Improve inline formula input · Issue #11175 · siyuan-note/siyuan