Hi,
i have tried to add new plugins to the WYSIWYG Editor, so ein added font,
color, justify and style. Because I wanted to see how it looks like i have
added the 4 new plugins to the Menubar and the Toolbar.
But after restarting xwiki, there are no new plugins in the wysiwyg editor
visible and the edit fields in the menubar of the wysiwyg-editor
administration page are hidden. Here is screenshot:
http://imageshack.us/photo/my-images/525/menubarxwiki.png/
I have already removed the 4 new plugins from the loaded plugin and toolbar
list - but how can i make the edit fields of the menubar visible again?
Perhaps I must edit the database directly?
My System is a Tomcat6 AS with an mysql dbms on a linux machine.
--
View this message in context: http://xwiki.475771.n2.nabble.com/WYSIWYG-Editor-Menubar-Settings-in-Admini…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
I'm trying to add some validations when the user save press the save button
on xwiki creation page.
What I added in actionButtons.js is that :
onSaveAndContinue : function(event) {
if (typeof(Wysiwyg) == 'undefined') {
return;
}
var editors = Wysiwyg.getInstances();
for(var hookId in editors) {
var editor = editors[hookId];
var plainTextArea = editor.getPlainTextArea();
}
alert(plainTextArea.value);
....
My problem is that I get an outdate value, meaning that for example, if in
my page I have :
a
b
c
And if I write "d" at the end, the alert return only :
a
b
c
Is there another better solution to get the text in the WYSIWYG editor ?
Fred
--
View this message in context: http://xwiki.475771.n2.nabble.com/Get-textarea-content-of-wysiwyg-in-javasc…
Sent from the XWiki- Users mailing list archive at Nabble.com.
I have a strange situation ...
I imported LightBox Macro and started to use it. All is fine, exept small
thing. When lightbox window with my picture shows, at a bottom-right corner
exist label "close" - this label doesn't work. Looks like not a link ...
Strange, because, example on a page XWiki.LightBox working fine. Maybe
problem with different space (my page stay at a another space)? Other labels
(prev, next) works fine in any cases. I can close popup lightbox window by
clicking main page - but for users it is not normal - they see "close" and
started to clicking it - without any result. Maybe anybody can help me.
Thanks beforehand
Eugen
--
View this message in context: http://xwiki.475771.n2.nabble.com/Close-label-on-a-LightBox-window-not-work…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello Everyone,
I just launched a new Xwiki site, and one of our groups has a Redmine wiki they would like to migrate to the new Xwiki site. Is there a utility that I can use to do this? If not, any suggestions on how I could go about this migration?
Thanks,
Barry
Hi!
I'm trying to develop a simple script for followng scenario:
- Registered User receives an "access code" to the restricted Space
- User fills in "access code" and access is granted to him.
Following test code is used for tests now (no codes involved yet):
{{velocity}}
#set ($mydoc = $xwiki.getDocumentAsAuthor("Week1.WebPreferences"))
#set ($rightsObject = $mydoc.newObject("XWiki.XWikiGlobalRights"))
## Set the values of the fields
#set ($result1 = $rightsObject.set("groups", "XWiki.XWikiAdminGroup"))
#set ($result2 = $rightsObject.set("levels", "view,comment,edit"))
#set ($result3 = $rightsObject.set("users", "$xcontext.getUser()"))
#set ($result4 = $rightsObject.set("allow", 1))
$mydoc.save()
{{velocity}}
The problem is: it works only if user alredy has access rights to the Week1.WebPreferences, if not (as desired by scenario)
#set ($mydoc = $xwiki.getDocumentAsAuthor("Week1.WebPreferences"))
gives Access denied error. The page with this velocity scripting is saved with programming rights user.
What is wrong?
I'd highly appreciate if anyone point the direction :-)
Kind regards,
Dmitry
Hello
I am interested in running Xwiki Enterprise using the WAR file on an Apache Geronimo 3.0 server. I have been trying to do so for about two weeks now but haven't been able to start Xwiki successfully I initially tried with Xwiki Enterprise 4.2 and then with 4.3 but with no success. Here are the steps that I have performed in my most recent attempt:
1) Installed a MySQL server, created an xwiki database, defined an xwiki user (with password xwiki), and granted the user all permissions to the database. I am able to successful connect to the xwiki database using a database client.
2) Downloaded and extracted the Apache Geronimo 3.0.0 ZIP file
3) Placed the dependency JAR files in the appropriate directories inside the Geronimo repository directory.
4) Created a geronimo-web.xml file and copied-and-pasted the complete sample file contents provided at http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationGeronimo. I updated the version numbers in geronimo-web.xml file to match the versions of the JAR files that I placed in the repository.
5) Defined a JDBC datasource in Geronimo using the procedure described in http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationGeronimo
6) Downloaded the XWiki 4.3 WAR file and deployed it on the Geronimo server (specifying the customized geronimo-web.xml file on the deployment page). The deployment was successful.
7) Modified the hibernate.cfg.xml file by commenting out the default database configuration and specifying the appropriate parameters for the MySQL database (which is what I'm using).
8) Copied the modified geronimo-web.xml file into Xwiki's WEB-INF folder.
9) When I tried to start the XWiki application, the following errors were generated in the log file:
2012-12-06 16:27:01,000 INFO [KernelContextGBean] bound gbean default/xwiki43/1354828503390/war?J2EEApplication=null,WebModule=default/xwiki43/1354828503390/war,j2eeType=ValidatorFactory,name=ValidatorFactory at name jca:/default/xwiki43/ValidatorFactory/ValidatorFactory
2012-12-06 16:27:10,000 ERROR [[/xwiki43]] Exception sending context initialized event to listener instance of class org.xwiki.container.servlet.XWikiServletContextListener
java.lang.RuntimeException: Failed to find the Observation Manager component
at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:101)
...
at java.lang.Thread.run(Unknown Source)
Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.observation.internal.DefaultObservationManager] identifier by [role = [interface org.xwiki.observation.ObservationManager] hint = [default]]
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:348)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:155)
at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:99)
... 82 more
Caused by: org.xwiki.component.phase.InitializationException: Failed to lookup Event Listeners
at org.xwiki.observation.internal.DefaultObservationManager.initialize(DefaultObservationManager.java:139)
at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:323)
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:378)
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346)
... 84 more
Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [role = [interface org.xwiki.observation.EventListener] hint = [LogbackEventGenerator]]
at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceMap(EmbeddableComponentManager.java:187)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceList(EmbeddableComponentManager.java:169)
at org.xwiki.observation.internal.DefaultObservationManager.initialize(DefaultObservationManager.java:135)
... 88 more
Caused by: java.lang.ClassCastException: org.ops4j.pax.logging.slf4j.Slf4jLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext
at org.xwiki.logging.logback.internal.LogbackUtils.getLoggerContext(LogbackUtils.java:50)
at org.xwiki.logging.logback.internal.LogbackUtils.getRootLogger(LogbackUtils.java:58)
at org.xwiki.logging.logback.internal.LogbackEventGenerator.initialize(LogbackEventGenerator.java:96)
at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:323)
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:378)
at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceMap(EmbeddableComponentManager.java:185)
... 90 more
2012-12-06 16:27:10,000 ERROR [StandardContext] Error listenerStart
2012-12-06 16:27:10,000 ERROR [StandardContext] Context [/xwiki43] startup failed due to previous errors
...
There is mention of an Observation Manager component and SLF4J. I'm not sure what is preventing Xwiki Enterprise from starting correctly. Any assistance would be greatly appreciated.
Thank you.
Naoufel
Hi all,
I have tried XWiki with OpenLDAP dynamic group as follow
http://www.zytrax.com/books/ldap/ch11/dynamic.html
but not successful.
I see this in xwiki.cfg
#-# The potential LDAP groups classes. Separated by commas.
xwiki.authentication.ldap.group_classes=group,groupOfNames,groupOfUniqueNames,dynamicGroup,dynamicGroupAux,groupWiseDistributionList
so I think XWiki can work with dynamic group.
Could we configure XWiki to use it?
Thanks,
--
Vie^.t