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
Content should be set and no error should be thrown.
❌ Actual result
Content isn't set and there is error being thrown: CKEditorError: view-position-after-root: You cannot make position after root
📃 Other details
This error gets only thrown when MathType plugin is used. If you remove the MathType from your build, editor will process pasted content without any issues.
Browser: Any
OS: Any
CKEditor version: 15.0.0
Installed CKEditor plugins: MathType
NOTES:
In the attached zip file there are files to create sample project (package.json, ckeditor.js and index.html) which helps to reproduce the problem - files.zip.
The most important is index.html sample which tries to insert below code:
What is weird is that error can be prevented by making different changes to above HTML. If you remove last paragraph or spaces between > P < and > fs <, everything will work as expected.
Inside the sample index.html below the setData method you will also find original HTML (with spaces and \n characters) and slightly reduced one with removed spaces and \n characters. Both were divided into 4 lines (for better readability) where each is a paragraph. That HTML (whichever of two) when used in full also causes error however if you use a single paragraph, even the longest one with all the spaces and new line characters between tags, everything will work as expected.
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered:
I checked it with the new release candidate of MathType&CKE5 integration and this bug seems to be fixed.
When I open the editor with this data, I get a math formula rendered correctly and no errors.
📝 Provide detailed reproduction steps (if any)
NOTE: Please also read Other details section.
✔️ Expected result
Content should be set and no error should be thrown.
❌ Actual result
Content isn't set and there is error being thrown:
CKEditorError: view-position-after-root: You cannot make position after root
📃 Other details
This error gets only thrown when MathType plugin is used. If you remove the MathType from your build, editor will process pasted content without any issues.
NOTES:
In the attached zip file there are files to create sample project (
package.json
,ckeditor.js
andindex.html
) which helps to reproduce the problem - files.zip.The most important is
index.html
sample which tries to insert below code:What is weird is that error can be prevented by making different changes to above HTML. If you remove last paragraph or spaces between
> P <
and> fs <
, everything will work as expected.Inside the sample
index.html
below thesetData
method you will also find original HTML (with spaces and\n
characters) and slightly reduced one with removed spaces and\n
characters. Both were divided into 4 lines (for better readability) where each is a paragraph. That HTML (whichever of two) when used in full also causes error however if you use a single paragraph, even the longest one with all the spaces and new line characters between tags, everything will work as expected.If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: