[xwiki-users] WYSIWYG toolbar features

2012-05-01 Thread Geo Du
Hi, all,

I have a problem to add more tools onto the toolbar with xwiki 3.5 I am
using, I like to add Text Alignment, Fonts, TextSize, colors, but I checked
this link:http://platform.xwiki.org/xwiki/bin/view/Features/WysiwygEditor,
it is for 2.0, where is the toolbar configuration information about the 3.5
version? I could not find from the admin guide.
Also from the WYSIWYG editor configuration class,
https://sipa.mol.fi/xwiki/bin/view/XWiki/WysiwygEditorConfigClass, it does
not define all the tool bar items.

Would you please point me to the right direction to look at?

Thanks very much!!

Dave
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How to add a sub-menu button for image menu in wysiwyg editor inline form

2012-05-01 Thread Geo Du
I got the second problem solved. but first one still not solved.

Thanks


On Mon, Apr 30, 2012 at 11:32 PM, Geo Du  wrote:

> Hi, Marius,
>
> Thanks for your response, I have two more questions,
> 1. When I test the Blog.CreatePost page, I can see the XWikiWysiwyg.js
> file loaded when it is on wysiwyg editor mode, but I donot see anywhere
> importing the XWikiWysiwyg.js file except the macros.vm where
> #macro(wysiwyg_import $lazy) uses the javascript as:
> $xwiki.jsfx.use("js/xwiki/wysiwyg/xwe/XWikiWysiwyg.js",
> {"forceSkinAction": true, "lazy": ${lazy}, 'defer': false})
>
>  so I created my own javascript XWikiWysiwygExt.js, loaded as this:
>
> $xwiki.jsfx.use("js/xwiki/wysiwyg/xwe/XWikiWysiwygExt.js",
> {"forceSkinAction": true, "lazy": ${lazy}, 'defer': false})
>
> but when I debug with firebug and load the CreatePost page in WYSIWYG
> mode, I can see the XWikiWysiwyg.js is loaded, but my XWikiWysiwygExt.js
> file is not loaded, I already put the file in the same directory as the
> XWikiWysiwyg.js file.
>
> 2. So I tried different approach by creating a BlogScript javascript
> extension and addeds as this:
>
> {{include document="Blog.BlogCode"/}}
>
> {{velocity filter="none"}}
> {{html clean="false" wiki="true"}}
>
> #if($hasEdit)
> $xwiki.jsx.use($blogScriptsDocumentName,{'minify':false,'defer':false})##
> ##
>
> My issue is the 'minify':false does not work, it always shows the minified
> version of the code, which I cannot debug, but I can see the minified code.
>
> So do you have any solutions about these two issues?
>
> Thanks again for your great help.
>
> Dave
>
>
> On Sat, Apr 28, 2012 at 5:28 AM, Marius Dumitru Florea <
> mariusdumitru.flo...@xwiki.com> wrote:
>
>> On Sat, Apr 28, 2012 at 5:23 AM, Geo Du  wrote:
>> > Hi, Marius,
>> >
>>
>> > I looked at the source code, and downloaded the whole 4.1 source code
>> zip
>>
>> You should clone/fork https://github.com/xwiki/xwiki-platform instead
>> and then create a branch based on the tag corresponding to the version
>> of XWiki Enterprise you're using (i.e. checkout xwiki-platform-3.5 tag
>> and then create a branch from it where you make your changes).
>>
>> Unfortunately you can't add your new feature without modifying a bit
>> the code of the WYSIWYG editor, but it should be pretty easy to merge
>> your changes automatically with Git when you upgrade to a new version
>> of XWiki Enterprise.
>>
>> In your branch, you can either modify the existing image plugin or
>> extend it in a new plugin (kept inside
>>
>> xwiki-platform/xwiki-platform-core/xwiki-platform-wysiwyg/xwiki-platform-wysiwyg-client
>> under org.xwiki.gwt.wysiwyg.client.plugin package).
>>
>> > file, it seems like I need to change the source code in the plugin.image
>> > package, but I am using the 3.5 version stable release, I can see these
>> two
>> > jar files have WYSIWYG editor:
>> > xwiki-platform-wysiwyg-client-3.5-shared.jar,
>> > xwiki-platform-legacy-oldcore-3.5.jar, so I have to either change code
>> for
>>
>> Note that the editor has a client side and a server side. If you
>> modify the server side it's enough to rebuild the
>> xwiki-platform-wysiwyg-server jar and overwrite the one from your XE's
>> WEB-INF/lib folder. If you modify the client side then you must
>> rebuild xwiki-platform-wysiwyg-client and then
>> xwiki-platform-wysiwyg-war and replace resources/js/xwiki/wysiwyg/xwe
>> folder from XE with the one from the generated war.
>>
>> > 3.5 version, or upgrade my deployment to 4.1 with my new image handling
>>
>> The editor version should match the XE version.
>>
>> > code for addComment tool, also If I change the original source code, in
>> the
>> > future if we need upgrade to new xwiki release, we need to merge the
>> > addComment tool again, so what is the best way to do that? is there a
>> way
>>
>> As I said above, using Git you should be able to automatically merge
>> your changes most of the time.
>>
>> > to add the tool by coding in javascript without touching the gwt plugin
>>
>> You could try, see the JavaScript API exposed by the WYSIWYG editor
>>
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/WYSIWYG+Editor+Module#HJavaScriptAPI
>> .
>>
>> > java code, or write java code by extending ImagePlugin with new method
>> to
>>
>> It's not that easy because when we wrote the image plugin we didn't
>> thought to much of how it could be extended. Some methods are private
>> and some are hard to extends. But still, you can try.
>>
>> Hope this helps,
>> Marius
>>
>> > add comment, and then built into a new Jar.
>> >
>> > Thanks for your response again.
>> >
>> > Dave
>> >
>> > On Fri, Apr 6, 2012 at 7:17 PM, du du  wrote:
>> >
>> >> Ok, thanks very much for your help.
>> >> Dave
>> >>
>> >>
>> >> On Fri, Apr 6, 2012 at 6:50 AM, Marius Dumitru Florea <
>> >> mariusdumitru.flo...@xwiki.com> wrote:
>> >>
>> >>> On Fri, Apr 6, 2012 at 1:49 AM, du du  wrote:
>> >>> > Hi, all,
>> >>> >
>> >>> > I am trying to add an addComments sub-menu item to image 

Re: [xwiki-users] edit title in inline mode

2012-05-01 Thread Joris Dirks
Come to think of it, the nicest way to be able to edit some structured
'new' data as well as the usual title, tags but also content objects might
not be binding a sheet to the class, but adding a panel or macro that
enables users to add these 'custom' objects to the page. That would make
some kind of hybrid mode: both normal editing and inline editing on one
document.

Any experience on that?


On 1 May 2012 16:56, Joris Dirks  wrote:

> Hi all, stumped on a little trick in inline mode:
>
> I created a sheet for a class, so users will use an inline mode form.
> However, I want them to be able to change the title of the document, like
> so:
>
> #if ($context.action != 'view')
> $doc.display('title')
>
> {{html}}#template('tagedit.vm'){{/html}}
> #end
>
> as you can see, I am able to add a tag editor in inline mode, but the
> title does not show up, and can not be edited. I'd hate to use a different
> object for the title, any suggestions?
>
> Thanks!
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] edit title in inline mode

2012-05-01 Thread Joris Dirks
Hi all, stumped on a little trick in inline mode:

I created a sheet for a class, so users will use an inline mode form.
However, I want them to be able to change the title of the document, like
so:

#if ($context.action != 'view')
$doc.display('title')

{{html}}#template('tagedit.vm'){{/html}}
#end

as you can see, I am able to add a tag editor in inline mode, but the title
does not show up, and can not be edited. I'd hate to use a different object
for the title, any suggestions?

Thanks!
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] check in the fixed version of tab extension

2012-05-01 Thread mohit gupta
Hi All,
i imported the tab extension from
http://extensions.xwiki.org/xwiki/bin/view/Extension/Tabs+Macro. But it
does not work fine. Switch tab does not work and content of all tab shows
under first tab.  I have fixed the issue as it required the small
modification. How should i check in the fixed version or is there any point
of contact whom i can intimate about the change.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] programming rights in xwiki farm

2012-05-01 Thread Thomas Mortagne
On Sat, Apr 28, 2012 at 2:52 PM, Bob Egolf  wrote:
> I have been running a simple xwiki farm with 2 sub wikis for some time and
> I recently tried to add a macro with a groovy script in the sub-wiki and
> got the "You don't have the right to execute this script".  I tried to
> grant programming to the user by logging into the wiki farm site and
> granting programming to the group and to the user I am using in the
> sub-wiki.  I imported the Admin tools application and ran the Programming
> rights Check and applied the config.
>
> I still am not able to grant the user programming rights and my macro with
> the script will not run, same permissions error.
> I have tried to create a new user in the wiki farm and grant programming to
> it, but when I login to the subwiki it has no permissions so I don't
> believe I have him setup quite right.
>
> This is running XWiki Enterprise 2.3.1.29183 build, not sure where to go
> from here.

Users from subwikis don't have programming right, never. There is
nothing you can do to make them have it.

So you will have to use a user from main wiki to save your macro document.

>
> Any help appreciated.
> Bob
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users