添加自定义字段

描述性

插入自定义字段到文档中

插件类型 :可视非系统

支持编辑器 :文档记录

添加Custom字段
安装

下载插件自GitHub并安装后台式计算机,原封不动云层安装指令

用法
  1. 打开插件标签并按示例添加自定义字段.
  2. 添加简单字段键入问题和标签添加简单字段按钮.
  3. 添加下拉场键入问题标签并添加回答选项添加回答选项时键入类型项目字段按添加按钮.需要更多选项时重复使用删除回答选项时,组合框选择并按删除按钮.字段准备后按添加下拉场按钮.
  4. 字段将添加到当前文本光标位置
插件结构

Github存储器https://github.com/ONLYOFFICE/sdkjs-plugins/tree/master/example_customfields_add.

  1. config.json,索引.htmlcodejs
  2. 图标
配置
{     "name" : "Example add custom fields",     "guid" : "asc.{4E2B5030-E1BE-41FA-BEE3-7E9BE7B5BFCF}",      "variations" : [         {             "description" : "Example add custom fields",             "url"         : "index.html",              "icons": [ "resources/light/icon.png", "resources/light/icon@2x.png" ],             "icons2": [                 {                     "style" : "light",                                          "100%": {                         "normal": "resources/light/icon.png"                     },                     "125%": {                         "normal": "resources/light/icon@1.25x.png"                     },                     "150%": {                         "normal": "resources/light/icon@1.5x.png"                     },                     "175%": {                         "normal": "resources/light/icon@1.75x.png"                     },                     "200%": {                         "normal": "resources/light/icon@2x.png"                     }                 },                 {                     "style" : "dark",                                          "100%": {                         "normal": "resources/dark/icon.png"                     },                     "125%": {                         "normal": "resources/dark/icon@1.25x.png"                     },                     "150%": {                         "normal": "resources/dark/icon@1.5x.png"                     },                     "175%": {                         "normal": "resources/dark/icon@1.75x.png"                     },                     "200%": {                         "normal": "resources/dark/icon@2x.png"                     }                 }             ],             "isViewer"        : false,             "EditorsSupport"  : ["word"],              "isVisual"        : true,             "isModal"         : false,             "isInsideMode"    : true,              "initDataType"    : "none",             "initData"        : "",              "buttons"         : []         }     ] }
方法事件
支持

如果要请求特性或报告关于此插件的故障,请使用问题段GitHub.