Double Slashes with CodeMirror use

Locked
User avatar
Sisko1990
Joomla! Guru
Joomla! Guru
Posts: 533
Joined: Fri Sep 22, 2006 9:54 pm
Location: Germany
Contact:

Double Slashes with CodeMirror use

Post by Sisko1990 » Mon Dec 26, 2011 12:47 am

Because I didn't find an active place to report my little bug, I will do it here:

In Joomla! 1.7 and 2.5 the CodeMirror-CSS is loaded with a double "//".
So activate CodeMirror-Editor as the default Editor, then go into any entry with the CodeMirror-Editor in it.
An there is the wrong link: http://{HOST}/media/editors/codemirror//css/xmlcolors.css

This function has got the mistake:

Code: Select all

<script type="text/javascript">
(function() {
var editor = CodeMirror.fromTextArea("jform_articletext", {"basefiles":["basefiles.js"],"path":"\/joomla_2.5\/media\/editors\/codemirror\/js\/","parserfile":"parsexml.js","stylesheet":["\/joomla_25_svn\/media\/editors\/codemirror\/\/css\/xmlcolors.css"],"height":"250px","width":"100%","continuousScanning":500});
Joomla.editors.instances['jform_articletext'] = editor;
})()
</script>
This double "//" will lead to a 403 error if the htaccess is adjusted to block some script kiddies.

Please just correct it, it only take 1 minute.


Jan

EDIT: I created a tracker item here, I hope that is the right tracker...: http://joomlacode.org/gf/project/joomla ... m_id=27543

Locked

Return to “Joomla! 2.5 Beta Support”