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

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

  •  
  •   hoythan · Mar 14, 2017 · 2695 views
    This topic created in 3371 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
        1
    coo  
       Mar 14, 2017
    我感觉这个是 Emoji ?
    jianzhiyao020
        2
    jianzhiyao020  
       Mar 14, 2017
    审查元素啊兄弟
    cute
        3
    cute  
       Mar 14, 2017   ❤️ 1
    contenteditable
    alwayshere
        4
    alwayshere  
       Mar 14, 2017   ❤️ 1
    div contenteditable
    hoythan
        5
    hoythan  
    OP
       Mar 14, 2017
    @coo 是 img
    vwok
        6
    vwok  
       Mar 14, 2017
    看起来这个并不是富文本框,只是看起来像,是直接在 div 里面插 dom 的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1158 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 18:00 · PVG 02:00 · LAX 11:00 · JFK 14:00
    ♥ Do have faith in what you're doing.