You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2019/03/08 15:59:06 UTC

[openmeetings] branch master updated: [OPENMEETINGS-2025] formula creation in Safari is fixed

This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/master by this push:
     new a78146b  [OPENMEETINGS-2025] formula creation in Safari is fixed
a78146b is described below

commit a78146b282085a112fdd5527ed6a908a232f02df
Author: Maxim Solodovnik <so...@gmail.com>
AuthorDate: Fri Mar 8 22:58:10 2019 +0700

    [OPENMEETINGS-2025] formula creation in Safari is fixed
---
 .../main/java/org/apache/openmeetings/web/room/wb/raw-tool-math.js   | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/wb/raw-tool-math.js b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/wb/raw-tool-math.js
index 044b065..9dc67d1 100644
--- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/wb/raw-tool-math.js
+++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/wb/raw-tool-math.js
@@ -16,14 +16,13 @@ var StaticTMath = (function() {
 		MathJax.Hub.Queue(function() {
 			if (!error) {
 				const mjOut = wrapper[0].getElementsByTagName('svg')[0];
-				$(mjOut).attr('xmlns', 'http://www.w3.org/2000/svg');
-				callback(mjOut.outerHTML);
+				callback(mjOut);
 			}
 		});
 	}
 	function create(o, canvas, callback, errCallback) {
 		tex2svg(o.formula, function(svg) {
-			fabric.loadSVGFromString(svg, function(objects, options) {
+			fabric.parseSVGDocument(svg, function(objects, options) {
 				const opts = $.extend({}, o, options)
 					, obj = objects.length === 1
 						? new fabric.Group(objects, opts)