[xwiki-users] How to disable marco editor in CKEditor 1.7

2016-06-16 Thread Wei He
I am looking for advice on how to disable macro editor in CKEditor.  We want
to upgrade to 1.7 to fix bugs, but not ready to let users explore all
macros.

It would be nice if we can modify the script in CKEditor.EditSheet to
disable it or hide the available macro list.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/How-to-disable-marco-editor-in-CKEditor-1-7-tp766.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Using REST APIs to create Users and give them Access Rights...

2016-06-16 Thread jlutz42
All - 

I am trying to use the XWiki REST APIs to create a user in our XWiki system,
but I am not able to give them admin rights.   

Background: 
I have an empty database (mysql) and I am running an XWiki war inside a
tomcat server.  The system starts correctly and creates the database with
default data. No issues at this point.  Next I want to create an admin user
with the REST APIs.   

What I want to accomplish with REST APIs: 

1) Create an admin user using REST API. 
2) Login to the XWiki with that admin user. 
3) import the XAR file (xwiki-enterprise-ui-mainwiki-all-8.1.xar). 
4) Change the admin user back to a normal user using the REST API. 
5) Add the user to the XWikiAdminGroup and use those group rights going
forward. 
6) Login again as an admin user as part of the XWikiAdminGroup group. 
7) Any user can edit their own profile (admin or not).  Currently it can
only be edited by admin users. 
8) User is assigned the home wiki as a default wiki.



I have two issues at this point.  One there is no way to run the REST call
except as a superadmin, because there are no admin users created during the
initial data load (I think that I saw that admin users are not created when
running just the xwiki.war).  If I add a new user to the system, the user is
created, but I cannot seem to find a way to make them an admin user so that
I can import an xar file to load the extra setup for the XWiki.   

I cannot login to the XWiki as a superadmin, because I have enabled CAS SSO. 

REST API to create admin group: 


curl -v -u superadmin:system -X PUT -H "Content-type: text/plain"
--data-ascii ' '
http:///xwiki-enterprise-web-8.1-SNAPSHOT/rest/wikis/xwiki/spaces/XWiki/pages/XWikiAdminGroup
 


curl -v -u superadmin:system -X POST -d
"className=XWiki.XWikiRights#levels=login,view,edit,delete,creator,register,comment,script,admin,createwiki,programming#allow=1"
http://localhost:8080/xwiki-enterprise-web-8.1-SNAPSHOT/rest/wikis/xwiki/spaces/XWiki/pages/XWikiAdminGroup/objects


REST API to create user: 


curl -v -u superadmin:system -X PUT -H "Content-type: text/plain"
--data-ascii '{{include document="XWiki.XWikiUserSheet"/}}'
http:///xwiki-enterprise-web-8.1-SNAPSHOT/rest/wikis/xwiki/spaces/XWiki/pages/foo
 


curl -v -u superadmin:system -X POST -d
"className=XWiki.XWikiUsers#first_name=FooFirst#last_name=FooLast#password=foo"
http:///xwiki-enterprise-web-8.1-SNAPSHOT/rest/wikis/xwiki/spaces/XWiki/pages/foo/objects
 


curl -v -u superadmin:system -X POST -d
"className=XWiki.XWikiRights#levels=edit#allow=1#users=XWiki.foo"
http:///xwiki-enterprise-web-8.1-SNAPSHOT/rest/wikis/xwiki/spaces/XWiki/pages/foo/objects
 


curl -v -u superadmin:system -X POST -d
"className=XWiki.XWikiGroups#member=XWiki.foo"
http:///xwiki-enterprise-web-8.1-SNAPSHOT/rest/wikis/xwiki/spaces/XWiki/pages/XWikiAdminGroup/objects
 

Any help would be greatly appreciated! 


Thanks, 
John



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Using-REST-APIs-to-create-Users-and-give-them-Access-Rights-tp765.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] change date picker to shamsi(iranian calender)

2016-06-16 Thread Marius Dumitru Florea
The date picker uses Java's DateFormatSymbols class
https://docs.oracle.com/javase/8/docs/api/java/text/DateFormatSymbols.html
with the current locale taken from the Localization Module
http://extensions.xwiki.org/xwiki/bin/view/Extension/Localization+Scripting
. So you need to check that the current locale is something that
corresponds to shamsi and that DateFormatSymbols supports shamsi.

Hope this helps,
Marius

On Thu, Jun 16, 2016 at 11:49 AM, z_h09911 
wrote:

>
>
>
>
> --
> View this message in context:
> http://xwiki.475771.n2.nabble.com/change-date-picker-to-shamsi-iranian-calender-tp753.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Xwiki replace " " with "+" on title

2016-06-16 Thread stefbort
Hi everybody.

 *FIXIED* 

The cause is Tomcat. With release 8 (maybe 9 too?) Xwiki don't works
correctly.
With release 7 it is a rock!

Like this I see the mysql connector release 6 dont'n works with Xwiki.

Tanks to all .



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Xwiki-replace-with-on-title-tp7599972p759.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] change date picker to shamsi(iranian calender)

2016-06-16 Thread z_h09911




--
View this message in context: 
http://xwiki.475771.n2.nabble.com/change-date-picker-to-shamsi-iranian-calender-tp753.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users