Product: PowerShell Universal
Version: 5.6.13
I have a form with multiple TInyMCE editors within the UD Form. I have each tinymce editor copying its own contents to a hidden textbox to allow validation within the form and to get the contents later when submitting the form:
$TinyMCESettings = @{
menubar = 'edit view insert format table'
plugins = "link autolink image lists table searchreplace fullscreen"
toolbar = 'undo redo link image styles bold italic underline bullist numlist outdent indent searchreplace fullscreen'
link_default_target = '_blank'
browser_spellcheck = $true
contextmenu = $false
statusbar = $false
}
New-UDTinyMCE -OnEditorChange {
Set-UDElement -Id 'problemDescription' -Properties @{
value = $($Body | ConvertFrom-Json)
}
} -Init $TinyMCESettings
New-UDElement -Tag 'div' -Content {
New-UDTextbox -Id 'problemDescription'
} -Attributes @{
style = @{
display = 'none'
}
}
Whenever users submit the form it seems to cut off some of the text they enter into the tinymce editor. Has anyone seen this issue before? Is there a rich text editor similar to tinymce I should be using instead?