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
Since version 11.1.1 there is a Problem with creating a new line on iOS.
When using a simple sanitizeToDOMFragment like this:
constcreateSanitizeToDOMFragment=()=>{constpurify=createDOMPurify(window);purify.setConfig({ALLOWED_TAGS: ["div","br"],RETURN_DOM: true,});return(html: string)=>{constfrag=document.createDocumentFragment();if(html){// Added this for debug.alert(html);constsanitized=purify.sanitize(html);while(sanitized.firstChild){frag.appendChild(sanitized.firstChild);}}returnfrag;};};
Starting with version 11.1.1sanitizeToDOMFragment would be called when tapping Enter to create a new line.
Afterwards the cursor gets moved to the beginning of the RTE without actually creating a new line.
This only happens in version 11.1.1, so it must be caused by this commit 108ff8f
As a workaround I have downgraded to 11.1.0 which fixed the issue.
Also I want to take this moment to thank you all for this awesome open source project <3
The text was updated successfully, but these errors were encountered:
cvle
added a commit
to coralproject/rte
that referenced
this issue
Jun 8, 2021
Since version
11.1.1
there is a Problem with creating a new line on iOS.When using a simple
sanitizeToDOMFragment
like this:Starting with version
11.1.1
sanitizeToDOMFragment
would be called when tappingEnter
to create a new line.Afterwards the cursor gets moved to the beginning of the RTE without actually creating a new line.
This only happens in version
11.1.1
, so it must be caused by this commit 108ff8fAs a workaround I have downgraded to
11.1.0
which fixed the issue.Also I want to take this moment to thank you all for this awesome open source project <3
The text was updated successfully, but these errors were encountered: