1. Luke Plant
  2. semanticeditor
  3. Issues
Issue #43 new

parentsOrSelf is not a valid function

Anonymous created an issue

This line (865):

var container = jQuery(this.wym.selected()).parentsOrSelf(this.blockdefSelector);

Of the file:

semanticeditor/semanticeditor/static/semanticeditor/javascript/wymeditor/plugins/semantic/wymeditor.semantic.js

give me an error. I so I temporarely replaced the parentsOrSelf function by parents()

Comments (1)

  1. Luke Plant repo owner

    I'm pretty sure this is caused by having multiple copies of jquery loaded, which cause previous jQuery plugins to be lost. I don't think it happens with a default installation of django-cms and semanticeditor, but is caused by other plugins/templates.

    It's a tricky problem, though. I think it is possible to fix it by using an appropriate closure.

  2. Log in to comment