首页
话题
消息
手册
我的
返回介绍

Tab Focus plugin

发布于 2019-05-06 字数1292 浏览 892 评论 0

This plugin adds the possibility to tab in/out of TinyMCE.

Type: String

Example
tinymce.init({
  selector: "textarea",  // change this value according to your HTML
  plugins: "tabfocus"
});

Options

This setting affects the execution of the tabfocus plugin. This setting can be used to change the focus behavior of the editor when the tab key has been pressed inside the editable area.

tabfocus_elements

This option enables you to specify an element ID to focus when the user presses the tab key inside the editor. You can also use the special ":prev" and ":next" values. It will then place the focus on either the previous or next input element placed before/after the TinyMCE instance in the DOM.

Type: String

Example
// Move focus to specific element
tinymce.init({
  selector: "textarea",  // change this value according to your HTML
  tabfocus_elements: "somebutton"
});
// Move focus to next element in DOM
tinymce.init({
  selector: "textarea",  // change this value according to your HTML
  tabfocus_elements: ":prev,:next"
});

您暂时不能评论!

管理员开启了需要登录才能够评论,你可以免费注册一个本站的账号。

还没有评论!

目前还没有任何评论,快来抢沙发吧!