我正在使用tinyMCE文本编辑器。它具有在编辑器中插入表格的功能。问题是,当我在用户点击提交后显示表格时,表格上方有一些空格(% c is created from a graph, here is the associated c for the example
c=[[1,-1,0,0,0,0];[0,1,-1,0,0,0];[0,0,1,-1,0,0];[0,0,0,1,-1,0];[0,0,0,0,1,-1];[1,0,0,0,0,-1];[0,1,0,0,-1,0];[1,0,0,0,-1,0];[0,1,0,0,0,-1];[0,1,0,-1,0,0];[0,0,1,0,0,-1]];
% base system, six nodes in 2d
xsys = [[0 1 2 2 1 0]' [1 1 1 0 0 0]'];
dexample = rand(6,2)*0.1;
% xsys is in this case an n by d matrix of coordinates (nodes by dimensions)
% and d is the displacement of xsys
u = @(d) c *(xsys(:,1)+d(:,1));
v = @(d) c *(xsys(:,2)+d(:,2));
U = @(d) diag(u(d));
V = @(d) diag(v(d));
Linv = @(d) diag(1./sqrt(U(d)*u(d)+V(d)*v(d)));
L0inv = Linv(xsys);
Q = @(d) EA*(L0inv - Linv(d))
% created for the sake of differentiation
dd = sym('d%d%d',size(xsys),'real');
% A and B here are sparse 0/1/-1 matrices. I am applying a load matrix
% (same size as xsys) vector fe
eq1 = @(d) A' * B' * Q(d) * c * (xsys+d) + A * fe;
% eq1, in this particular case, creates a matrix of 8 equations using a
% total of 12 variables contained in d
j1 = @(d) [reshape(diff(eq1(d),dd(1)),[8 1])';
reshape(diff(eq1(d),dd(2)),[8 1])';
reshape(diff(eq1(d),dd(3)),[8 1])';
reshape(diff(eq1(d),dd(4)),[8 1])';
reshape(diff(eq1(d),dd(5)),[8 1])';
reshape(diff(eq1(d),dd(6)),[8 1])';
reshape(diff(eq1(d),dd(7)),[8 1])';
reshape(diff(eq1(d),dd(8)),[8 1])';
reshape(diff(eq1(d),dd(9)),[8 1])';
reshape(diff(eq1(d),dd(10)),[8 1])';
reshape(diff(eq1(d),dd(11)),[8 1])';
reshape(diff(eq1(d),dd(12)),[8 1])'];
% varargs2fun outputs argin as argout
objective = @(d) varargs2fun( eq1(d), j1(d) );
}太多,似乎不会消失。当我输入普通文本等但仅使用表格时,这不会发生。