I want to embed small fragments of music notation on my web pages. I want to be able to update and edit these regularly, so I'd prefer to not create and upload images, so I found a Javascript library that does exactly what I need:
http://moinejf.free.fr/js/index.html
This works perfectly with simple HTML pages - simply call the library and include code that describes the music - something like this:
Code: Select all
X:0
T:Hello Scale!
K:C
CD EF GA Bc
Code: Select all
X:0 T:Hello Scale! K:C CD EF GA Bc
Code: Select all
<pre><!-- empty comment to force newline -->
X:0
T:Hello Scale!
K:C
CD EF GA Bc
</pre>
However...when I update the HTML with the above, and save it in the editor, the above HTML gets saved. I load the resulting page in a seperate browser and it works perfectly. However, the CMSimple editor loads the page HTML and tries to execute the js. Something goes wrong and some dummy/error text is written, and so I no longer have access to the code I originally wrote.
This is the resulting output, for what it is worth:
http://callingthetune.co.uk/?Resources_ ... 29___Right
http://callingthetune.co.uk/?Resources_ ... 29___Wrong
Is it possible to dissuade the editor from trying to run the library somehow?
For what it's worth, I do not need a WYSIWYG editor and would be quite happy with a textbox to just edit the HTML. I see it is possible to disable the tinymce plugin - is this safe to do or will it simply cause me more problems?
Let me know if there's other information I can add to this.