Skip to content

标签在行末时,点击行末后光标应该在标签外 #12305

Closed
@TCOTC

Description

@TCOTC
Contributor

插入标签后输入、用键盘操作后输入都是正常的,唯独用鼠标点击后光标是在标签里面的,导致直接输入会变成修改标签:

default.webm

而用下面这个 CSS 之后就正常了:

.protyle-wysiwyg span[data-type="tag"] {
    padding: 0px 1px 0px 1px;
}
default.webm

我觉得可能要默认加 padding 才行

Activity

TCOTC

TCOTC commented on Sep 8, 2024

@TCOTC
ContributorAuthor

用户反馈:https://ld246.com/article/1725731897713

image

移动端没有左右方向键,就没法解决问题了

added a commit that references this issue on Sep 24, 2024
76883b1
added a commit that references this issue on Sep 25, 2024
2aa170d
TCOTC

TCOTC commented on Sep 25, 2024

@TCOTC
ContributorAuthor

fix in #12581

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @TCOTC

        Issue actions

          标签在行末时,点击行末后光标应该在标签外 · Issue #12305 · siyuan-note/siyuan