Commits

Luke Plant  committed 3a54cdc

Fixed bug with styles being lost and command blocks being moved

  • Participants
  • Parent commits 2c49336

Comments (0)

Files changed (1)

File semanticeditor/media/semanticeditor/javascript/wymeditor/plugins/semantic/wymeditor.semantic.js

         // check we've got a command block.
         var className = prev.className;
         var prev_id = prev.id;
-        if (prev_id && prev_id.match(eval("/^" + className + "/"))) {
+        if (prev_id && className && prev_id.match(eval("/^" + className + "_/"))) {
             prev.id = className + "_" + id;
             // need to update presentation_info as well
             this.presentation_info[prev.id] = this.presentation_info[prev_id];