Hey, new user here. Loving pell so far!
I added some custom actions for video and others like this:
actions: [
...
'image',
{
name: 'video',
icon: '📹',
title: 'Video',
result: () => {
const url = window.prompt('Enter the video URL')
if (url) pell.exec('insertHTML', `<video src="` + url + `" width="400" controls>` +
'Your browser does not support HTML5 video.' +
'</video>')
}
},
...
]
Inserting a video link works perfectly. But if you insert it as the last thing in the input field, you can no longer remove it, or get the cursor to the other side of it anymore. Not even pressing the Delete button can delete it.
Hey, new user here. Loving pell so far!
I added some custom actions for video and others like this:
Inserting a video link works perfectly. But if you insert it as the last thing in the input field, you can no longer remove it, or get the cursor to the other side of it anymore. Not even pressing the Delete button can delete it.