Skip to content

Can't delete custom elements #210

Description

@Siccity

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions