Format MathML equations before submission to the GraphControl (#926)
* Format richedit input * fix spelling error
This commit is contained in:
committed by
Stephanie Anderl
parent
c8a67eb574
commit
397c180d52
@@ -54,6 +54,7 @@ void EquationTextBox::OnApplyTemplate()
|
||||
m_richEditBox->SelectionFlyout = nullptr;
|
||||
m_richEditBox->EquationSubmitted +=
|
||||
ref new EventHandler<MathRichEditBoxSubmission ^>(this, &EquationTextBox::OnEquationSubmitted);
|
||||
m_richEditBox->FormatRequest += ref new EventHandler<MathRichEditBoxFormatRequest ^>(this, &EquationTextBox::OnEquationFormatRequested);
|
||||
}
|
||||
|
||||
if (m_equationButton != nullptr)
|
||||
@@ -381,3 +382,8 @@ void EquationTextBox::OnEquationSubmitted(Platform::Object ^ sender, MathRichEdi
|
||||
|
||||
EquationSubmitted(this, args);
|
||||
}
|
||||
|
||||
void EquationTextBox::OnEquationFormatRequested(Object ^ sender, MathRichEditBoxFormatRequest ^ args)
|
||||
{
|
||||
EquationFormatRequested(this, args);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user