Skip to content

[iOS] Heading styles are applied to the last paragraph if any text has been modified #304

@IvanIhnatsiuk

Description

@IvanIhnatsiuk

Describe the bug

If we set the default value like:

<html>
<h1>Test</h1>
<ul>
<li>Test</li>
<li>Test</li>
</ul>
<p>Test</p>
<p>Test</p>
</html>

And type any text at the end, it will apply heading styles to the last paragraph

To Reproduce
Steps to reproduce the behavior:

  1. Copy and set the defaultValue like:
<html>
<h1>Test</h1>
<ul>
<li>Test</li>
<li>Test</li>
</ul>
<p>Test</p>
<p>Test</p>
</html>
  1. Focus on the text view at the end
  2. Type any text
  3. Observe that the text became a heading

Expected behavior

  1. It should not apply heading styles for the latest paragraph if we didn't trigger it manually

Screenshots

Screen.Recording.2025-12-06.at.17.35.35.mov

Device (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions