public void paste() {
		if (textPane.getSelectionEnd() != document.getLength()) return;
		int start = deleteSelection();
		textPane.setSelectionStart(start);
		textPane.paste();
		textPane.select(document.getLength(), document.getLength());
		if (document instanceof DefaultStyledDocument) {
			DefaultStyledDocument doc = (DefaultStyledDocument) document;
			doc.setCharacterAttributes(start, textPane.getSelectionEnd() - start, inputAttributes, true);
		}
	}