Hi Leon,
On Fri, Oct 16, 2009 at 8:22 AM, Leon Wang <freeleons(a)gmail.com> wrote:
  Hi Everyone, Hi Marius,
 I have successfully load my GWT tree on to the Xwiki page. I met a new
 problem which is that I cannot add the background color button to the
 toolbar of WYSIWYG editor. I have read the document:
 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/WysiwygEditor#HXWikiPre…
  and I tried two ways, first is to edit templates/macros.vm I edited this
 line:  toolbar: '$xwiki.getXWikiPreference("wysiwyg.toolbar", "bold
italic
 underline strikethrough backcolor teletype | subscript superscript |
 unorderedlist orderedlist | outdent indent | undo redo | format fontname
 fontsize forecolor backcolor | hr symbol | link unlink | importer")',  No
 matter where I put "backcolor forecolor" it just would not show up.
 
You simply forgot to add "color" to the "plugins" line (it's right
above the
"toolbar" line).
  Second I added wysiwyg.toolbar as String property to
Xwiki.preferences
 class, and edit the Xwiki.preferences in the object editor and I put bold
 italic underline strikethrough teletype | subscript superscript |
 justifyleft justifycenter justifyright justifyfull | unorderedlist
 orderedlist | outdent indent | undo redo | format | fontname fontsize
 forecolor backcolor | hr removeformat symbol as value of wysiwyg.toolbar,
 please see the screenshot for what I did:
 
http://picasaweb.google.com/lh/photo/yi-zwcDtr4ibfePckJ56tg?feat=directlink
 After that the background colorWYSIWYG editor still does not appear. please
 see the screen shot:
 
http://picasaweb.google.com/lh/photo/I1ALHBmG7YjGanyDT8i3kw?feat=directlink
 Could
 you give me some ideas what was wrong?
 
See above.
  I successfully load my GWT tree view to Xwiki right
side pannel(Thank you,
 Marius.) I want to make it interact with WYSIWYG editor. For example, if
 user highlighted one sentence from a document in the WYSIWYG editor and
 clicked on one node of the GWT tree say "Argument", then it will set the
 highlighted sentence's background yellow(or blue). Could you give me some
 ideas how can I make the tree interact with WYSIWYG editor like that?
 Thank you for your help! Really appreciate it!
 _______________________________________________
 devs mailing list
 devs(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/devs
 
--
Guillaume Lerouge
Product Manager - XWiki SAS
Skype: wikibc
Twitter: glerouge
http://guillaumelerouge.com/