Hi,
I tried to implement a jquery based solution to resize the font. After including the jquery-1.11.3.js (via drag&drop to the JavaScripts folder in PlanetPress Connect and including it in my print template) and switching the view from design to preview and back there comes an error message:
TypeError: $(…)dy[PK] is not a function.
Detailed error message:
TypeError: $(…)dy[PK] is not a function.
TypeError: $(…)dy[PK] is not a function in ‘Program Files/Objectif Lune/OL Connect/plugins/com.objectiflune.layoutengine.html.systemscripts_1.0.1.25203/scripts/systemscripts.js’ at line 1905at com.objectiflune.layoutengine.html.js2java.JavascriptErrorHandler.onJavascriptError(Unknown Source)
at com.objectiflune.layoutengine.html.js2java.a.function(Unknown Source)
at com.objectiflune.layoutengine.html.embed.e.callJava(Unknown Source)
at org.mozilla.xpcom.internal.XPCOMJavaProxy.callXPCOMMethod(Native Method)
at org.mozilla.xpcom.internal.XPCOMJavaProxy.invoke(Unknown Source)
at com.sun.proxy.$Proxy136.oL_evaluateJS(Unknown Source)
at com.objectiflune.layoutengine.html.embed.u.a(Unknown Source)
at com.objectiflune.layoutengine.html.embed.u.execute(Unknown Source)
at com.objectiflune.layoutengine.html.embed.Browser.execute(Unknown Source)
at com.objectiflune.layoutengine.html.MozillaBrowser.a(Unknown Source)
at com.objectiflune.layoutengine.html.MozillaBrowser.execute(Unknown Source)
at com.objectiflune.layoutengine.html.pagination.i.run(Unknown Source)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
at com.objectiflune.layoutengine.html.pagination.PaginationProvider.revert(Unknown Source)
at com.objectiflune.contentcreation.html.mergeengine.impl.HtmlMergeEngine.revert(Unknown Source)
at com.objectiflune.application.designer.editors.TemplateEditor.C(Unknown Source)
at com.objectiflune.application.designer.editors.TemplateEditor.access$7(Unknown Source)
at com.objectiflune.application.designer.editors.ar.run(Unknown Source)
at com.objectiflune.application.designer.shared.internal.a.run(Unknown Source)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at com.objectiflune.application.designer.editors.d.run(Unknown Source)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
at com.objectiflune.application.designer.editors.HtmlEditor.withoutRedraw(Unknown Source)
at com.objectiflune.application.designer.editors.av.runInUIThread(Unknown Source)
at com.objectiflune.application.designer.editors.HtmlEditor.runJob(Unknown Source)
at com.objectiflune.application.designer.editors.TemplateEditor.onPageChanged(Unknown Source)
at com.objectiflune.application.designer.editors.HtmlEditor.pageChange(Unknown Source)
at org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEditorPart.java:290)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:2746)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1433)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:257)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.objectiflune.application.Application.start(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
What can I do to use jQuery in PlanetPress Connect?
PlanetPress Connect Designer version: 1.1.0.25554
Best regards,
Thomas