Author:
oleae
Version:
1.2
Released:
1 December 2009
Category:
Interface

New#2: Codemirror Extension: XSL editor hangs when entering a <script> tag

CodeMirror 1.3, Symphony 2.3, Firefox 14.0.1, Mac OSX Lion 10.7.4.

Web developer Error log says:

Timestamp: 8/3/12 9:24:13 AM Error: TypeError: d.startState is not a function Source File: http://NNN.NNNN.NNN/extensions/codemirror/assets/js/codemirror-compressed.js Line: 2999

code:

CodeMirror.defineMode("htmlmixed", function (a, b) { function f(a, b) { var f = c.token(a, b.htmlState); (LINE 2999) ---> return f == "tag" && a.current() == ">" && b.htmlState.context && (/^script$/i.test(b.htmlState.context.tagName) ? (b.token = h, b.localState = d.startState(c.indent(b.htmlState, "")), b.mode = "javascript") : /^style$/i.test(b.htmlState.context.tagName) && (b.token = i, b.localState = e.startState(c.indent(b.htmlState, "")), b.mode = "css")), f }

If enter with a text editor, XSL editor screen is blank upon refresh.

Can enter with text editor, and have access to the file. Can't ever successfully add , say if you want some inline JS code.

Please login to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details