2015-12-07 85 views
0

Proper MathML notation of repeating decimals呼籲空<mline />標籤:如何停止CKEditor在空(自關閉)MathML標籤後插入緊密標籤?

<math><mover align="right"><mn>0.16</mn><mline spacing="6" /></mover></math>

CKEditor的不承認這是一個正確的空標籤和無助地插入一個結束標記</mline>和食堂MathJax解釋:

<math><mover align="right"><mn>0.16</mn><mline spacing="3"></mline></mover></math>

這對使用MathML的其他空標籤有所影響,如<maligngroup/><malignmark/>

回答

1

解決方案是增加mline$empty標籤CKEditors名單ckeditor_config.js:

CKEDITOR.dtd.$empty['mline'] = 1;

端了增加一些,以防萬一:

_(['mline', 'mspace', 'maligngroup', 'malignmark', 'msline']).each(function(tag, index){ 
    CKEDITOR.dtd.$empty[tag] = 1; 
}) 
相關問題