New-UDEditor
Synopsis
Creates an Editor.JS editor.
Syntax
New-UDEditor [[-Id] <String>] [[-Data] <Hashtable>] [[-OnChange] <Endpoint>] [[-Format] <String>] [[-PublishedFolder] <String>] [<CommonParameters>]Description
Creates an Editor.JS editor.
Parameters
-Id
The id of the editor. This defaults to a new GUID.
Required? false
Position? 1
Default value ([Guid]::NewGuid())
Accept pipeline input? false
Aliases
Accept wildcard characters? false-Data
The data to use for the editor.
-OnChange
The endpoint to call when the editor changes.
-Format
The format of the data. This can be json or html.
-PublishedFolder
A published folder to upload files to. This is required for the image upload plugin.
Common parameters
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
Outputs
Examples
Example 1: Basic Editor
A basic editor.
Example 2: HTML Editor
An editor that uses HTML.
Example 3: OnChange
An editor with an OnChange script block.
Example 4: HTML
An editor that updates a pre tag with the HTML content.
Last updated
Was this helpful?