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

Visual Blocks plugin

发布于 2019-05-06 字数1361 浏览 783 评论 0

This plugin allows a user to see block level elements in the editable area. It is similar to WYSIWYG hidden character functionality, but at block level. It also adds a toolbar button and a menu item Show blocks under the View menu dropdown.

It’s worth noting that at present the toolbar button icon is the same for both visualblocks and visualchars.

Type: String

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

Options

This setting affects the execution of the visualblocks plugin. You may specify whether blocks are visible by default here.

visualblocks_default_state

This option enables you to specify the default state of the Visual Blocks plugin.

Type: Boolean

Default Value: false

Possible Values: true, false

tinymce.init({
  selector: "textarea",  // change this value according to your HTML
  plugins: "visualblocks",
  menubar: "view",
  toolbar: "visualblocks",
  visualblocks_default_state: true
});

您暂时不能评论!

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

还没有评论!

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