Hi Andreas,

Andreas Schaefer wrote:
> Hi
> 
> I think I am close having finished the Blog Upgrade to 2.0 Syntax. The only 
> major issue I have is that if i have WYSIWYG as the default editor I cannot 
> switch the editor because in the 2.0 WYSIWYG toolbar there is no SWITCH 
> EDITOR icon.
> 
> This seems to be the default behavior in 2.0 which is fine for regular pages 
> but in the Blog this is not working out because there is no way the user can 
> switch between the editors because there is no 'Choose editor' panel.

If you edit a regular 2.0 wiki page you'll notice the WYSIWYG editor has 
two tabs above the tool bar and the menu bar ( http://tinyurl.com/lenva6 
) . The "Source" tab allows you to edit the wiki syntax so it's similar 
to the "Switch Editor" tool bar button from the old editor. You can make 
the tabs appear when editing blog articles by editing 
templates/textarea_wysiwyg.vm and replace

#wysiwyg_editProperties($tdoc $editors false)

with

#wysiwyg_editProperties($tdoc $editors true)

This will load the full editor, instead of the compact one.

> 
> Any way to reintroduce that SWITCH EDITOR icon onto the 2.0 Toolbar?

Right now you cannot replace the "Source" tab with a tool bar button. 
You should make a feature request in JIRA. I tend to prefer a tool bar 
button since the tool bar is configurable ( http://tinyurl.com/mb2hd8 ) 
but the tabbed interface was been voted iirc.

Thanks,
Marius

> 
> Cheers
> 
> Andreas Schaefer
> CEO of Madplanet.com Inc.
> EMail: [email protected]
>            [email protected]
> Twitter: andy_mpc
> AIM:     [email protected]
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to