ckeditor / ckeditor4

The best enterprise-grade WYSIWYG editor. Fully customizable with countless features and plugins.
https://ckeditor.com/ckeditor-4
Other
5.8k stars 2.48k forks source link

MathML content not representing on CKedtior 4 in Chrom broswer #4545

Open Nitinchopkar opened 3 years ago

Nitinchopkar commented 3 years ago

Type of report

MathML content not representing on CKedtior 4 in Chrom broswer

Provide detailed reproduction steps (if any)

CodePen link given below over there you can check our code simple we loading MathML content into CKEditor.

https://codepen.io/nitinchopkar/pen/qBqpowp

  1. We are using ckeditor 4 and loading MathML Contents there.
  2. Tried on Chrome Browser
  3. MathML Equation Sample Html Content : [ <script src="https://cdnjs.cloudflare.com/ajax/libs/ckeditor/4.16.0/ckeditor.js"&gt;&lt;/script&gt; <div id="editor"> Math ML Equation : <math xmlns="http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;msup xmlns="http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;mrow&gt;&lt;mfenced separators="|"><mrow><mi>x</mi><mo>+</mo><mi>a</mi></mrow></mfenced></mrow><mrow><mi>n</mi></mrow></msup><mo xmlns="http://www.w3.org/1998/Math/MathML&quot;&gt;=&lt;/mo&gt;&lt;mrow xmlns="http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;msubsup&gt;&lt;mo stretchy="true">&sum;</mo><mrow><mi>k</mi><mo>=</mo><mn>0</mn></mrow><mrow><mi>n</mi></mrow></msubsup><mrow><mfenced separators="|"><mrow><mfrac linethickness="0pt"><mrow><mi>n</mi></mrow><mrow><mi>k</mi></mrow></mfrac></mrow></mfenced><msup><mrow><mi>x</mi></mrow><mrow><mi>k</mi></mrow></msup><msup><mrow><mi>a</mi></mrow><mrow><mi>n</mi><mo>-</mo><mi>k</mi></mrow></msup></mrow></mrow></math> </div>

    ]

Expected result

What is the expected result of the above steps? image

Actual result

What is the actual result of the above steps? image

Other details

sculpt0r commented 3 years ago

Hi @Nitinchopkar 

Thank you for your issue report.
I can confirm such behavior. Unfortunately, it is a higher-level issue. Please take a look at https://www.chromestatus.com/feature/5240822173794304
So currently we are unable to fix this.

Also, we provide MathJax plugin for equations. If you are able to use different syntax - maybe it will help you.