isKira
V2EX  ›  问与答

请问如何向 Tinymce 指定位置插入 html?

  •  
  •   isKira · Oct 11, 2014 · 3020 views
    This topic created in 4252 days ago, the information mentioned may be changed or developed.
    网上查了一个方法是tinyMCE.activeEditor.selection.setContent(‘test’)
    但是这样只能在鼠标位置插入,然后我的操作是先在mce里选好位置A,然后跳到另外一个窗口选择一个模板,然后再插入内容。这样的话位置A就丢失了。想知道,如何保存这个位置A,或者大家有更好的办法?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5492 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 93c8b4a0 · 35ms · UTC 07:54 · PVG 15:54 · LAX 00:54 · JFK 03:54
    ♥ Do have faith in what you're doing.