This patch extends the KTextEditor scripting API by:
- String editor.clipboardText()
- StringList editor.clipboardHistory()
- void editor.setClipboardText(String text)
What's new here is that we introduced a new keyword 'editor'
similar to 'view' and 'document'. We can extend this editor
object with general purpose functions that are related to
the editor.
For now, this review request is mostly to raise a discussion
about whether we really want to go this way, or whether there
is a better way of adding this.