Bläddra i källkod

text editor: force cleanup when setting font size

Joscha Jaeger 10 år sedan
förälder
incheckning
2535ec167f
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      src/allplatforms/libs/wysihtml5/wysihtml5.js

+ 2 - 0
src/allplatforms/libs/wysihtml5/wysihtml5.js

@@ -10266,6 +10266,8 @@ wysihtml5.Commands = Base.extend(
 			size = (typeof(size) == "object") ? size.size : size;
 			if (!(/^\s*$/).test(size)) {
 				wysihtml5.commands.formatInline.execWithToggle(composer, command, "span", false, false, "font-size:" + size+";", REG_EXP);
+				// SUPERGLUE HACK clean up to avoid wrong line heights
+				composer.cleanUp();
 			}
 		},