From 0aeebbf38075815079ce98dca001fba69ea8eb47 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Mon, 18 Jul 2016 16:57:31 -0700 Subject: [PATCH] fix(menus): Adopt new `pasteandmatchstyle` menu role --- src/components/contenteditable/contenteditable.cjsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/contenteditable/contenteditable.cjsx b/src/components/contenteditable/contenteditable.cjsx index fa3696ffe..b3b83e818 100644 --- a/src/components/contenteditable/contenteditable.cjsx +++ b/src/components/contenteditable/contenteditable.cjsx @@ -409,9 +409,7 @@ class Contenteditable extends React.Component menu.append(new MenuItem({ label: 'Cut', role: 'cut'})) menu.append(new MenuItem({ label: 'Copy', role: 'copy'})) menu.append(new MenuItem({ label: 'Paste', role: 'paste'})) - menu.append(new MenuItem({ label: 'Paste and Match Style', click: => - NylasEnv.getCurrentWindow().webContents.pasteAndMatchStyle() - })) + menu.append(new MenuItem({ label: 'Paste and Match Style', role: 'pasteandmatchstyle'})) menu.popup(remote.getCurrentWindow())