문제

If i install a fresh Plone 4.3.2 and then upgrade the default plone.app.jquery from 1.7.2 to 1.9.1, editing the default homepage shows the following: - TinyMCE shows no toolbar - Form tabs no longer work - Javascript console errors:

 - TypeError: a.browser is undefined
jQuery.extend(jQuery.tools.overlay.conf,
popupforms.js (line 15)

 - TypeError: jQuery.tools.overlay is undefined
jQuery.tools.overlay.conf.oneInstance = false;
++reso...pers.js (line 16)

 - TypeError: jQuery.tools.overlay is undefined
jQuery.extend(jQuery.tools.overlay.conf,
popupforms.js (line 15)

 - TypeError: jqForm.children(...).tabs is not a function
$("input[name='form.button.PublishComment']").live('click', function () {
comments.js (line 146)

 - TypeError: $(...).live is not a function
$("input[name='form.button.PublishComment']").live('click', function () {
comments.js (line 146)

How can i use plone.app.jquery 1.9.1 with the latest version of Plone?

도움이 되었습니까?

해결책 2

In answer to the question "How can i use plone.app.jquery 1.9.1 with the latest version of Plone?" (currently 4.3.2) the answer appears to be:

  1. It's not supported OR
  2. You can try and configure your site to use a different editor (I actually did try CKEditor but same problem) or no editor (authors work directly in html), and disable popupforms and form_tabbing so there are no console errors OR
  3. Dont rely on 1.9.1, instead develop your packages to work with jquery 1.7.2 until such time as Plone supports a higher version of jquery.

다른 팁

Looking at your errors, probably you must update also plone.app.jquerytools to the version used by Plone 4.3 (see http://dist.plone.org/release/4.3.2/versions.cfg).

NBB: However I think that Plone 4.2 is not officially supporting jQuery 1.9.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top