File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -209,6 +209,9 @@ class EditorInstance {
209209 onShowNote = { ( ) => {
210210 this . _postMessage ( { action : 'showNote' } ) ;
211211 } }
212+ onOpenTab = { ( ) => {
213+ this . _postMessage ( { action : 'openTab' } ) ;
214+ } }
212215 onOpenWindow = { ( ) => {
213216 this . _postMessage ( { action : 'openWindow' } ) ;
214217 } }
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ function Editor(props) {
6868 onFocusBack = { props . onFocusBack }
6969 onFocusForward = { props . onFocusForward }
7070 onShowNote = { props . onShowNote }
71+ onOpenTab = { props . onOpenTab }
7172 onOpenWindow = { props . onOpenWindow }
7273 onInsertTable = { handleInsertTable }
7374 onInsertMath = { handleInsertMath }
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ function Toolbar({
3939 onFocusBack,
4040 onFocusForward,
4141 onShowNote,
42+ onOpenTab,
4243 onOpenWindow,
4344 onInsertTable,
4445 onInsertMath,
@@ -155,6 +156,11 @@ function Toolbar({
155156 { l10n . getString ( 'general-show-in-library' ) }
156157 </ button >
157158 ) }
159+ { viewMode !== 'tab' && viewMode !== 'ios' && (
160+ < button className = "option" onClick = { onOpenTab } >
161+ { l10n . getString ( 'note-editor-edit-in-tab' ) }
162+ </ button >
163+ ) }
158164 { viewMode !== 'window' && viewMode !== 'ios' && (
159165 < button className = "option" onClick = { onOpenWindow } >
160166 { l10n . getString ( 'note-editor-edit-in-window' ) }
You can’t perform that action at this time.
0 commit comments