a tool for shared writing and social publishing

add iosbs and focus editor on placeholder click

+4 -2
+4 -2
app/[leaflet_id]/publish/BskyPostEditorProsemirror.tsx
··· 18 18 import { history, undo, redo } from "prosemirror-history"; 19 19 import { inputRules, InputRule } from "prosemirror-inputrules"; 20 20 import { autolink } from "components/Blocks/TextBlock/autolink-plugin"; 21 + import { IOSBS } from "app/lish/[did]/[publication]/[rkey]/Interactions/Comments/CommentBox"; 21 22 22 23 // Schema with only links, mentions, and hashtags marks 23 24 const bskyPostSchema = new Schema({ ··· 258 259 }, [handleMentionSelect]); 259 260 260 261 return ( 261 - <div className="relative w-full h-full"> 262 + <div className="relative w-full h-full group"> 262 263 {editorState && ( 263 264 <MentionAutocomplete 264 265 editorState={editorState} ··· 270 271 /> 271 272 )} 272 273 {editorState?.doc.textContent.length === 0 && ( 273 - <div className="italic text-tertiary absolute top-0 left-0"> 274 + <div className="italic text-tertiary absolute top-0 left-0 pointer-events-none"> 274 275 Write a post to share your writing! 275 276 </div> 276 277 )} ··· 282 283 overflowWrap: "break-word", 283 284 }} 284 285 /> 286 + <IOSBS view={viewRef} /> 285 287 </div> 286 288 ); 287 289 }