Service Portal widget - sp-tinymce-editor image upload not working

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2019 05:16 AM
I have this very simple widget with the tiny mce html editor. It appears fine one the form and the editor seems to be working. Except when I try to upload an image. The image is not inserted into the editor and I get no error messages in the console log. What am I missing ?
<div class="panel panel-default">
<div class="panel-heading">Preview</div>
<sp-tinymce-editor ng-model="c.data.text" ng-model-options="{getterSetter: true}"></sp-tinymce-editor>
</div>
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2021 08:09 AM
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2020 06:18 AM
Hi, check out this OOB widget Knowledge Article Comments which also uses the sp-tinymce-editor directive: https://{yourinstance}.service-now.com/sp_widget.do?sys_id=077810090be432004ce28ffe15673adb&
At least the record table name is required to make it work, possibly the attachment-guid as well. Note also that the table name needs to be in triple quotes.
<sp-tinymce-editor attachment-guid = "-1" f record-table-name="'table-name-here'" ng-model-options="{}" ng-model="c.data.description" id="description"></sp-tinymce-editor>