【问题标题】:How to auto-focus RTE editor inside firefox?如何在 Firefox 中自动对焦 RTE 编辑器?
【发布时间】:2008-09-21 21:45:01
【问题描述】:

我们有一个基于 htmlarea 的 RTE 编辑器,它包含在 iframe 中启用了编辑模式的内容。问题是如何自动将焦点带入编辑器?

【问题讨论】:

    标签: javascript firefox iframe focus editmode


    【解决方案1】:

    其中IFRAMEidmyRTE

    var iframe = document.getElementById("myRTE");
    if ( iframe && iframe.contentWindow )
       iframe.contentWindow.focus();
    

    【讨论】:

      猜你喜欢
      • 2022-11-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-26
      • 2015-12-20
      • 2019-08-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多