File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import FloatingButtons from "../widgets/FloatingButtons.jsx";
88import GlobalMenuWidget from "../widgets/buttons/global_menu.js" ;
99import LauncherContainer from "../widgets/containers/launcher_container.js" ;
1010import MobileDetailMenu from "../widgets/mobile_widgets/mobile_detail_menu.js" ;
11- import MobileEditorToolbar from "../widgets/type_widgets/ckeditor/mobile_editor_toolbar.js" ;
1211import NoteList from "../widgets/collections/NoteList.jsx" ;
1312import NoteTitleWidget from "../widgets/note_title.js" ;
1413import ContentHeader from "../widgets/containers/content-header.js" ;
@@ -29,6 +28,7 @@ import TabRowWidget from "../widgets/tab_row.js";
2928import ToggleSidebarButton from "../widgets/mobile_widgets/toggle_sidebar_button.jsx" ;
3029import type AppContext from "../components/app_context.js" ;
3130import NoteDetail from "../widgets/NoteDetail.jsx" ;
31+ import MobileEditorToolbar from "../widgets/type_widgets/text/mobile_editor_toolbar.jsx" ;
3232
3333const MOBILE_CSS = `
3434<style>
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import utils from "../../services/utils";
66import Modal from "../react/Modal" ;
77import Button from "../react/Button" ;
88import { useTriliumEvent } from "../react/hooks" ;
9- import EditableTextTypeWidget from "../type_widgets/editable_text" ;
109import { CKEditorApi } from "../type_widgets/text/CKEditorWithWatchdog" ;
1110
1211export interface MarkdownImportOpts {
@@ -20,12 +19,10 @@ interface RenderMarkdownResponse {
2019export default function MarkdownImportDialog ( ) {
2120 const markdownImportTextArea = useRef < HTMLTextAreaElement > ( null ) ;
2221 const editorApiRef = useRef < CKEditorApi > ( null ) ;
23- const [ textTypeWidget , setTextTypeWidget ] = useState < EditableTextTypeWidget > ( ) ;
2422 const [ text , setText ] = useState ( "" ) ;
2523 const [ shown , setShown ] = useState ( false ) ;
2624
2725 useTriliumEvent ( "showPasteMarkdownDialog" , ( { editorApi } ) => {
28- setTextTypeWidget ( textTypeWidget ) ;
2926 if ( utils . isElectron ( ) ) {
3027 const { clipboard } = utils . dynamicRequire ( "electron" ) ;
3128 const text = clipboard . readText ( ) ;
You can’t perform that action at this time.
0 commit comments