• 请不要在回答技术问题时复制粘贴 AI 生成的内容
hoythan
V2EX  ›  程序员

Twitter 发表内容的富文本框是什么原理制作的?

  •  
  •   hoythan ·
    PRO
    · Mar 14, 2017 · 2959 views
    This topic created in 3526 days ago, the information mentioned may be changed or developed.

    twitter 的发表框支持插入表情,网络上的教程都是使用 iframe 来创建的,他的没有 iframe 他是什么原理实现的?

    我希望用 jquery 实现,如果可以,感谢.

    Supplement 1  ·  Mar 14, 2017
    如果有完整的文档就好了
    6 replies  •  2017-03-14 12:55:27 +08:00
    coo
    coo
    Mar 14, 2017
    1
    我感觉这个是 Emoji ?
    jianzhiyao020
    jianzhiyao020
    Mar 14, 2017
    2
    审查元素啊兄弟
    cute
    cute
    Mar 14, 2017❤️1
    3
    contenteditable
    alwayshere
    alwayshere
    Mar 14, 2017❤️1
    4
    div contenteditable
    hoythan
    hoythan
    OP
    PRO
    Mar 14, 2017
    5
    @coo 是 img
    vwok
    vwok
    Mar 14, 2017
    6
    看起来这个并不是富文本框,只是看起来像,是直接在 div 里面插 dom 的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2111 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 00:44 · PVG 08:44 · LAX 16:44 · JFK 19:44
    ♥ Do have faith in what you're doing.