isKira
V2EX  ›  问与答

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

  •  
  •   isKira · Oct 11, 2014 · 2989 views
    This topic created in 4230 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   ·   1258 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 71ms · UTC 23:36 · PVG 07:36 · LAX 16:36 · JFK 19:36
    ♥ Do have faith in what you're doing.