File tree Expand file tree Collapse file tree
packages/super-editor/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -235,7 +235,6 @@ const handleDone = () => {
235235 setTimeout (() => {
236236 props .editor .commands .removeAiMark (' aiAnimationMark' );
237237 // Remove the highlight when we're done
238- // @todo: confirm we need this
239238 emitAiHighlight (' remove' );
240239 }, 1000 );
241240};
@@ -295,7 +294,8 @@ const handleSubmit = async () => {
295294 console .error (' AI generation error:' , error);
296295 isError .value = error .message || ' An error occurred' ;
297296 } finally {
298- promptText .value = ' ' ; // Clear the input after submission
297+ // Clear the input after submission
298+ promptText .value = ' ' ;
299299 // Only disable track changes if we enabled it (in suggesting mode)
300300 if (isInSuggestingMode .value ) {
301301 props .editor .commands .disableTrackChanges ();
Original file line number Diff line number Diff line change 11export const AiMarkName = 'aiMark' ;
22export const AiAnimationMarkName = 'aiAnimationMark' ;
3- export const AiLoaderNodeName = 'aiLoaderNode' ;
3+ export const AiLoaderNodeName = 'aiLoaderNode' ;
You can’t perform that action at this time.
0 commit comments