<!-- Please provide a clear and concise description of what the bug is. Include screenshots if needed. Please test using the latest version of the relevant Lexical packages to make sure your issue has not already been fixed. --> Lexical version: 0.40.0 ## Steps To Reproduce 1. Type bolded "hello" in the editor 2. Move the cursor between "he" and "llo" 3. Press the Tab key twice 4. Move the cursor between the two tabs 5. Start Typing any character <!-- Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than Lexical. Issues without reproduction steps or code examples may be closed as not actionable. --> Link to code example: [playground](https://playground.lexical.dev/#doc=H4sIAAAAAAAAE72SQU_DMAyF_8s7R1PLJoLyAzgj9QgcTGPWSFlSue5ENfW_o3SgbhwQcOBkvyf584uVE9gHzdIoKcOdIDlrqW0XohdOcI9fhGelEOEqg9csB1K42uCQPcMhFSfCYNApFgMGym8Kh45LP_XFXSyDI8sQcoKrZ7OCb1Zw9RPwk16A6eXfub89RIz5u0s8G_gg3Oqi0xjjyi-UkDyn8xs-GD0J7YX67gp03ne_Jiuy-UzzhzXL17iKOhtEGrShI3u42tp6Z2-3W2vvrMGQR2nL3EOkaS95TP5yGtVmV20qzO_2iqojgwIAAA) <!-- Please provide a CodeSandbox (https://codesandbox.io/s/new) or (https://stackblitz.com/github/facebook/lexical/tree/main/examples/react-plain-text?embed=1&file=src%2FApp.tsx&terminalHeight=0&ctl=1&showSidebar=0&devtoolsheight=0&view=preview), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem. You may provide a screenshot of the application if you think it is relevant to your bug report. Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve. --> ## The current behavior https://github.com/user-attachments/assets/2698571a-c8e4-41d9-9591-65d6e55904eb The format disappears between the tabs. ## The expected behavior If a user inserts tabs within a formatted range, those tabs should maintain the formatting. ## Impact of fix <!-- - How severe is this bug? How often does it happen? Is it causing an outage somewhere? - Who would benefit from this fix? Any specific users, groups or companies? - If possible include metrics. Approximately how many users would this fix benefit? -->