userdhf
V2EX  ›  问与答

咨询个技术问题,网页文本编辑器的...

  •  
  •   userdhf · Jul 18, 2019 · 1355 views
    This topic created in 2670 days ago, the information mentioned may be changed or developed.

    editable 的 div 会把网页格式也粘贴进去,有没有啥办法只粘贴纯文本吗?

    1 replies  •  2019-07-18 17:53:57 +08:00
    johnnyNg
    johnnyNg
    Jul 18, 2019
    1
    拦截原生的粘贴,自己去掉格式相关的东西,再执行粘贴
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4297 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 02:06 · PVG 10:06 · LAX 18:06 · JFK 21:06
    ♥ Do have faith in what you're doing.