Due to the use of the 'autofocus' attribute being hard-coded as 'end' in the code when using tiptap, the page scrolls to the middle when there is default content. I'm not sure if this was intentional or not. I believe that the 'autofocus' attribute should be exposed as a prop for the Editor, allowing users to freely decide the autofocus behavior. Therefore, the content of this PR is to add the 'autofocus' prop to the Editor component, matching it with the behavior of the tiptap editor. Thank you
Due to the use of the 'autofocus' attribute being hard-coded as 'end' in the code when using tiptap, the page scrolls to the middle when there is default content. I'm not sure if this was intentional or not. I believe that the 'autofocus' attribute should be exposed as a prop for the Editor, allowing users to freely decide the autofocus behavior. Therefore, the content of this PR is to add the 'autofocus' prop to the Editor component, matching it with the behavior of the tiptap editor. Thank you