You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.
Currently we use <p> </p> as a way to have a placeholder for new lines in several situations. The issue is that we also convert trailing space to , hence if a user enters a single space in a paragraph, the Rust code would output the exact same than what it outputs as a placeholder.
Currently we use
<p> </p>
as a way to have a placeholder for new lines in several situations. The issue is that we also convert trailing space to
, hence if a user enters a single space in a paragraph, the Rust code would output the exact same than what it outputs as a placeholder.This replacement in Rust occurs here:
matrix-rich-text-editor/crates/wysiwyg/src/dom/nodes/text_node.rs
Lines 224 to 247 in 860222e
The placeholder thing is used by the parser on iOS here:
matrix-rich-text-editor/platforms/ios/lib/WysiwygComposer/Sources/HTMLParser/Extensions/DTCoreText/DTHTMLElement.swift
Lines 35 to 43 in 860222e
Known issues related to this on iOS:
return
+space
+return
+ "more text", the line with only a space is eventually eaten out by the composerNot using the HTML and build the attributed string directly from the model would definitely fix that though.
The text was updated successfully, but these errors were encountered: