remove use of html-escape in instructure_equation/plugin.ts
was needlessly used test plan: - existing tests pass refs EVAL-3088 flag=none Change-Id: I3e41220f24232b347cdb141a0e1f4dbd65f41acc Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/317070 Reviewed-by: Jake Oeding <jake.oeding@instructure.com> QA-Review: Jake Oeding <jake.oeding@instructure.com> Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com> Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
This commit is contained in:
parent
6290b0051f
commit
891e8927ed
|
@ -16,7 +16,6 @@
|
|||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import htmlEscape from 'escape-html'
|
||||
import formatMessage from '../../../format-message'
|
||||
import clickCallback from './clickCallback'
|
||||
import {IconEquationLine} from '@instructure/ui-icons/es/svg'
|
||||
|
@ -42,12 +41,10 @@ tinymce.PluginManager.add('instructure_equation', function (ed) {
|
|||
})
|
||||
|
||||
ed.ui.registry.addToggleButton('instructure_equation', {
|
||||
tooltip: htmlEscape(
|
||||
formatMessage({
|
||||
default: 'Insert Math Equation',
|
||||
description: 'Title for RCE button to insert a math equation',
|
||||
})
|
||||
),
|
||||
tooltip: formatMessage({
|
||||
default: 'Insert Math Equation',
|
||||
description: 'Title for RCE button to insert a math equation',
|
||||
}),
|
||||
onAction: () => ed.execCommand('instructureEquation'),
|
||||
icon: 'equation',
|
||||
onSetup(buttonApi) {
|
||||
|
|
Loading…
Reference in New Issue