contenteditable not working in safari but works in chrome

后端 未结 2 836
囚心锁ツ
囚心锁ツ 2021-02-19 00:28

I\'m having a strange issue...

This works in chrome as expected but in safari it only gets .. glowing but doesn\'t react on key input..

this is the method that f

2条回答
  •  迷失自我
    2021-02-19 00:44

    Safari has the user-select CSS setting as none by default. You can use:

    [contenteditable] {
        -webkit-user-select: text;
        user-select: text;
    }
    

    To make it work.

提交回复
热议问题