Paste option missing from context menu in Rich Text editor

Description

TinyMCE (the Rich Text editor) has a custom context menu (the menu that appears if you right click). It only has a "Link" option in it by default, so users who prefer to right-click and paste are going to be at a loss. We want to add the "Paste" option, which doesn't actually work in a lot of browsers due to restricted clipboard access, but which will at least pop up an error telling the user how to paste with their keyboard.

We also want to add the horizontal line option, because why not!

And a paste button on the left side of the toolbar, because we do love us some scope creep (This may or may not be the best placement for it, but it is easily moved in response to feedback.)

Testing

On desktop (this won’t affect mobile, which is a different interface)

  1. Log in

  2. Post > New Work

  3. Scroll down to the area where you enter text and choose “Rich Text”

  4. Right-click or equivalent in the area where you’d enter text

  5. Choose “Paste” option and confirm it either pastes or tells you how to paste

  6. Choose “Horizontal line” option and confirm it inserts a horizontal line

  7. On the toolbar, choose the clipboard icon on the left and confirm it either pastes or tells you how

Documentation

https://www.tiny.cloud/docs/configure/editor-appearance/#contextmenu

Environment

None

Status

Assignee

Sarken

Reporter

Sarken

Roadmap

Misc

Priority

High

Affects versions

Fix versions

Components

RichTextEditor

Difficulty

Easy

Required Access Level

None

Milestone

Internal 0.9
Configure