首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 使用Tab键跳出TinyMCE的文本字段

使用Tab键跳出TinyMCE的文本字段

  • 资源大小:1.62 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: tinymce Tab 文本 使用 字段 跳出

资 源 简 介

During my work for Journalizer I created a plugin for TinyMCE. What does it do? Well, it solves a problem, but which one? We have list of TinyMCE-controlled textareas and it is so common that you use the tab-key to jump to the next field that we wanted that as well. Unfortunately, this doesn"t work in TinyMCE. Why is that? When using TinyMCE, you declare a HTML form element as "managed" by TinyMCE. What it does is substituting the actual HTML element with an iframe that can be edited like rich text. I.e. you can make things bold and italic and all that just with a click on button and you immediately see the results — nice. But because the actual textarea gets replaced by the iframe, common "tabbing" through your form elements no longer works because iframes are no form elements — not so nice. What the plugin does is intercepting keyboard events for the current iframe. When tab is hit, it looks up the next element to focus and voilà turns over the

文 件 列 表

tabjump
._editor_plugin.js
editor_plugin.js
._editor_plugin_src.js
editor_plugin_src.js
._README.txt
README.txt

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.191654s