Hi guys, thanks a bunch for trying to be helpful. I think I understand what you said. Just in case my exact issue would be useful to you and others, let me elaborate on what I was asking a little bit more.
I was writing an equation with xinha equation plugin, say the formula for the area of a circle, area = pi times radius squared. In xinha editor, it appears just like the equation in a math textbook (this is what wysiswyg is supposed to mean anyway, at least for the wys part), thanks to ASCIIMathML.js that comes with the xinha equation plugin (the js is loaded when the xinha plugin is called). The equation was stored in the
DB (the content table of module content) as
<span
class=
"AM">`A=
pi*r^
(2)`</span>
. So far so good.
The problem arises when I tried to view the content I created (by calling the display or view function in the content module). What I see is the raw text `A=pi*r^(2)` instead of the beautiful equation in xinha editor. So what I get isn`t exactly what I saw. This is understandable: when I view the created content by calling a func in the content module, the js and
CSS loaded are those in the system and the current module in use, content. ASCIIMathML.js is not included because it is in xinha plugin dir (/javascript/scribite_editors/xinha/plugins/Equation/ in my system).
So in order to make the equation display correctly I need to have ASCIIMathML.js somehow loaded when I view the created content (and xinha not loaded), as Sven suggested. This is unfortunately not very convenient to do in my case because I was using the content module to view and not putting the content in a template file written by myself where I can always simply use pageutil::addvar to load the needed js.
As far as I see there is no good solution to this, though my wish would be that scribite be smart enough to realize a js or
CSS specific to a used editor plugin is missing from the system definition and then somehow include it in the created and saved content (This is probably next to impossible for security reasons).