Get Started
Plugins
Macros
More information

Work with content controls content

Description

Inserts the content of one content control into another.

Plugin type: non-visual, system.

Supported editors: documents.

WorkWithContentControlsContent
Installation

Download this plugin from GitHub and install it following the desktop, on-premises, or cloud installation instructions.

Usage
  1. Add two content controls to the document. One of them should have tag 11 and the other - tag 14 (these tags are used in the plugin code as an example but you can change them).
  2. Open the Plugins tab and press Example work with content controls content.
  3. The content from the content control with tag 11 will be inserted into the content control with tag 14.
Plugin structure

Repository on GitHub: https://github.com/ONLYOFFICE/sdkjs-plugins/tree/master/example_work_with_content_controls_content.

  1. config.json, index.html and code.js
  2. Icons
Config
{
    "name" : "example_work_with_content_controls_combo",
    "guid" : "asc.{639E69BC-58DE-4029-9B43-F0420F67E6F9}",

    "variations" : [
        {
            "description" : "example_work_with_content_controls_combo",
            "url"         : "index.html",

            "icons"           : ["resources/img/icon.png", "resources/img/icon@2x.png"],
            "isViewer"        : false,
            "EditorsSupport"  : ["word"],

            "isVisual"        : false,
            "isModal"         : false,
            "isInsideMode"    : false,
            "isSystem"        : true,

            "initDataType"    : "none",
            "initData"        : "",

            "isUpdateOleOnResize" : false,

            "buttons"        : [ ],

            "events" : [
                "onClick"
            ]
        }
    ]
}
Methods and events

The main plugin code is located here.

Support

If you want to request a feature or report a bug regarding this plugin, use the issues section on GitHub.