返回介绍

Full Page plugin

发布于 2019-05-06 06:50:30 字数 4650 浏览 1113 评论 0 收藏 0

This plugin allows user to edit certain metadata and document properties such as title, keywords, and description. This is done via a dialog box which appears after pressing a control added to the toolbar. If the code plugin is enabled fullpage exposes <head>, <body> and various meta tags in source code view.

The plugin also adds a Metadata and Document properties menu under the File menu and button to the toolbar.

Type: String

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

Options

These settings affect the execution of the fullpage plugin. Many of the settings allow you to specify default values for the full page editing process.

fullpage_default_doctype

This option enables you to specify the default doctype for the output HTML.

Type: String

Example
tinymce.init({
  selector: "textarea",  // change this value according to your HTML
  plugins: "fullpage",
  fullpage_default_doctype: "<!DOCTYPE html>"
});

fullpage_default_encoding

This option enables you to specify the default encoding for the output HTML.

Type: String

Example
tinymce.init({
  selector: "textarea",  // change this value according to your HTML
  plugins: "fullpage",
  fullpage_default_encoding: "UTF-8"
});

fullpage_default_font_size

This option enables you to specify the default font size for the body element.

Type: String

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

fullpage_default_font_family

This option enables you to specify the default font family for the body element.

Type: String

Example
tinymce.init({
  selector: "textarea",  // change this value according to your HTML
  plugins: "fullpage",
  fullpage_default_font_family: "'Times New Roman', Georgia, Serif;"
});

fullpage_default_langcode

This option enables you to specify the default language codes for the output HTML.

Type: String

Example
tinymce.init({
  selector: "textarea",  // change this value according to your HTML
  plugins: "fullpage",
  fullpage_default_langcode: "en-US"
});

fullpage_default_title

This option enables you to specify the default title for the output HTML.

Type: String

Example
tinymce.init({
  selector: "textarea",  // change this value according to your HTML
  plugins: "fullpage",
  fullpage_default_title: "TinyMCE - Configuration:fullpage_default_title"
});

fullpage_default_text_color

This option enables you to specify the default text color for the body element.

Type: String

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

fullpage_default_xml_pi

This option enables you to specify if a XML declaration should be added or not true/false option.

Type: Boolean

Possible Values: true, false

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

fullpage_hide_in_source_view

This option allows you to specify whether TinyMCE should hide the non body content from source view.

Type: Boolean

Possible Values: true, false

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文