返回介绍

Anchor plugin

发布于 2019-05-06 字数935 浏览 764 评论 0

This plugin adds an anchor/bookmark button to the toolbar that inserts an anchor at the editor’s cursor insertion point. It also adds the menu item anchor under the Insert menu.

When a user clicks on the anchor button or menu item they will be prompted via a dialog box to enter a string. The string will be inserted into the HTML as an anchor id at the location of the cursor. For example, a user places their cursor at the beginning of “Hello World” and clicks on the anchor button and enters “start” in the dialog box. The resulting HTML will take the form of <p><a id="start"></a>Hello, World!</p>.

Type: String

Anchor plugin example
tinymce.init({
  selector: "textarea",  // change this value according to your HTML
  plugins: "anchor",
  toolbar: "anchor",
  menubar: "insert"
});

您暂时不能评论!

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

还没有评论!

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