Davide,
thank you for answering. Given the complexity of MathJax rendering
I expected a negative answer ;o( Anyway, TinyMCE's editor iframe
executes MathJax in "contentEditable" mode, but then some other
issues arise. Switching "designMode" is an alternative, but would
impact all scripts injected by the editor and have unpredictable
results.
Cheers
Jaro
On Nov 12, 1:16 am, "Davide P. Cervone" <
d...@union.edu> wrote:
> I don't think you will be successful at transferring MathJax output
> from one DOM to another, in general. The math layout is actually
> dependent on some of the details of the actual location that the math
> is placed (MathJax investigates the location of the mathematics to
> determine things like the font size of the surrounding text, and so
> on), so creating the mathematics at one location and moving it to
> another is not going to work well, in general. Also, as you suggest,
> there is CSS that needs to be included, and that is generated on the
> fly as mathematics is rendered, and it is not easy to determine what
> CSS you would need to duplicate.
>
> I would recommend that you load MathJax within the iframe itself and
> run it there. I see fromhttp://
tinymce.moxiecode.com/punbb/viewtopic.php?pid=82698
> that you have already tried this, with only limited success. I do
> not know anything about TinyMCE's internals, and I don't know much
> about designMode either. The documentation from Microsoft athttp://
msdn.microsoft.com/en-us/library/ms533720(VS.85).aspx