Skip to content

Commit 30a6722

Browse files
committed
Fix slash commands demo
1 parent 42be84a commit 30a6722

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cool-demos/slash-commands.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
// the number of characters to type before displaying the autocompleter menu and,
126126
// configure the autocompleter to display a menu opposed a row of icons
127127
// https://www.tiny.cloud/docs/ui-components/autocompleter/#configurationoptions
128-
ch: '/',
128+
trigger: '/',
129129
minChars: 0,
130130
columns: 1,
131131

@@ -157,7 +157,7 @@
157157

158158
// Here the matched autocompleter objects are built
159159
// https://www.tiny.cloud/docs/ui-components/autocompleter/#autocompleteitem
160-
return new tinymce.util.Promise(function (resolve) {
160+
return new Promise(function (resolve) {
161161
var results = matchedActions.map(function (action) {
162162
return {
163163
meta: action,
@@ -200,7 +200,7 @@
200200
tinymce.init({
201201
selector: "textarea",
202202
// Remember to include all relevant plugins here which you included in your `insertActions` array above
203-
plugins: "commandpalette insertdatetime lists link code table toc image codesample media checklist",
203+
plugins: "commandpalette insertdatetime lists link code table image codesample media checklist",
204204
height: 400,
205205
});
206206
</script>

0 commit comments

Comments
 (0)