[xwiki-devs] Bugs (?) in blog post editing
Hello, I discovered two problems with the blog. [xwiki-enterprise-installer-windows-2.0.3.exe on Win XP Pro, reproducible also on http://playground.xwiki.org/] ------------ Problem #1 1. go to the Blog page and create a new post 2. type anything in the Content and/or Summary fields and click Preview - you won't see anything but a title ------------ Problem #2 1. go to the Blog page and create a new post 2. switch to the source editor and insert the following content in the Content field: 1. o1 - first 1. o2 - second 1*. u1 1*. u2 1*. u3 1. o3 - third 3. click "Save & view" 4. so far, so good, the post is displayed ok, but now try to edit it - its content will be messed up and look like this: 1. o1 - first 1. o2 - second 1*. u1 1*. u2 1*. u3 1. o3 - third - as you see some characters are replaced with their codes. There are also two newline characters that weren't present before. ------------ Another way to reproduce problem #2: 1. go to the Blog page and create a new post 2. switch to the source editor and insert the following content in the Content field: 1. o1 - first 1. o2 - second 1*. u1 1*. u2 1*. u3 1. o3 - third 3. switch to the wysiwyg editor and then switch back to the source editor ------------ Neither of these problems occurs when I'm editing a "normal" wiki page (as opposed to blog entry). Am I doing something wrong or should I fill the bug report? :) Kind regards Lukasz
Hi, Łukasz Skowroński wrote:
Hello,
I discovered two problems with the blog.
[xwiki-enterprise-installer-windows-2.0.3.exe on Win XP Pro, reproducible also on http://playground.xwiki.org/]
------------
Problem #1 1. go to the Blog page and create a new post 2. type anything in the Content and/or Summary fields and click Preview - you won't see anything but a title
------------
Problem #2 1. go to the Blog page and create a new post 2. switch to the source editor and insert the following content in the Content field:
1. o1 - first 1. o2 - second 1*. u1 1*. u2 1*. u3 1. o3 - third
3. click "Save & view" 4. so far, so good, the post is displayed ok, but now try to edit it - its content will be messed up and look like this:
1. o1 - first 1. o2 - second
1*. u1 1*. u2 1*. u3
1. o3 - third
- as you see some characters are replaced with their codes. There are also two newline characters that weren't present before.
------------
Another way to reproduce problem #2: 1. go to the Blog page and create a new post 2. switch to the source editor and insert the following content in the Content field:
1. o1 - first 1. o2 - second 1*. u1 1*. u2 1*. u3 1. o3 - third
3. switch to the wysiwyg editor and then switch back to the source editor
------------
Neither of these problems occurs when I'm editing a "normal" wiki page (as opposed to blog entry).
I think the blog application is still using the old xwiki/1.0 syntax and thus the old WYSIWYG editor. When you create a normal wiki page it should use the new xwiki/2.0 syntax and thus the new WYSIWYG editor. If you search this mailing list you should be able to find ways to upgrade your blog to the new syntax. Hope this helps, Marius
Am I doing something wrong or should I fill the bug report? :)
Kind regards Lukasz
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
----- Original Message ----- From: "Marius Dumitru Florea"
I think the blog application is still using the old xwiki/1.0 syntax and thus the old WYSIWYG editor. When you create a normal wiki page it should use the new xwiki/2.0 syntax and thus the new WYSIWYG editor.
If you search this mailing list you should be able to find ways to upgrade your blog to the new syntax.
Marius, Thanks for the clue, indeed it is the wysiwyg 1.0 editor that is responsible for messing up the blog content:) I edited BlogPostClass [1] and changed Editor from --- to Text. This way my posts are displayed ok and I can later edit them with no problems. At the moment I can live without wysiwyg so this workaround temporarily works for me. Anyway, the Preview still doesn't work in creating/editing blogs and this is more problematic. Kind regards Lukasz [1] (/xwiki/bin/edit/Blog/BlogPostClass?editor=class)
I'm using Blog Application 8th draft. http://jira.xwiki.org/jira/browse/XABLOG-63. It has far less bug than the 2.0.3 enterprise edition. I think it's better to upgrade it now. Or remove it from the so called "stable" edition. 2009/11/17 Łukasz Skowroński <[email protected]>:
----- Original Message ----- From: "Marius Dumitru Florea"
I think the blog application is still using the old xwiki/1.0 syntax and thus the old WYSIWYG editor. When you create a normal wiki page it should use the new xwiki/2.0 syntax and thus the new WYSIWYG editor.
If you search this mailing list you should be able to find ways to upgrade your blog to the new syntax.
Marius,
Thanks for the clue, indeed it is the wysiwyg 1.0 editor that is responsible for messing up the blog content:)
I edited BlogPostClass [1] and changed Editor from --- to Text. This way my posts are displayed ok and I can later edit them with no problems. At the moment I can live without wysiwyg so this workaround temporarily works for me.
Anyway, the Preview still doesn't work in creating/editing blogs and this is more problematic.
Kind regards Lukasz
[1] (/xwiki/bin/edit/Blog/BlogPostClass?editor=class)
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- -- Currahee! We stand alone together!
----- Original Message ----- From: "Zhaolin Feng"
I'm using Blog Application 8th draft. http://jira.xwiki.org/jira/browse/XABLOG-63. It has far less bug than the 2.0.3 enterprise edition. I think it's better to upgrade it now. Or remove it from the so called "stable" edition.
On the XWiki 2.1 roadmap [1] I've seen that there are plans to migrate Blog to xwiki 2.0 syntax. Does the dev team consider using Andy Schaefer's code (I mean the 8th draft mentioned by Zhaolin) in future releases? I rather wouldn't like to use it if it won't be compatible with XWiki 2.1. I checked the latest XWiki development build and the blog is still based on 1.0 syntax. I could possibly help fix those blog issues / migrate to 2.0 syntax but I don't know in which direction shall I go now. Kind regards Lukasz [1] http://enterprise.xwiki.org/xwiki/bin/view/Main/Roadmap
Hi, On Nov 17, 2009, at 10:42 PM, Łukasz Skowroński wrote:
----- Original Message ----- From: "Zhaolin Feng"
I'm using Blog Application 8th draft. http://jira.xwiki.org/jira/browse/XABLOG-63. It has far less bug than the 2.0.3 enterprise edition. I think it's better to upgrade it now. Or remove it from the so called "stable" edition.
On the XWiki 2.1 roadmap [1] I've seen that there are plans to migrate Blog to xwiki 2.0 syntax. Does the dev team consider using Andy Schaefer's code (I mean the 8th draft mentioned by Zhaolin) in future releases?
Yes
I rather wouldn't like to use it if it won't be compatible with XWiki 2.1.
I checked the latest XWiki development build and the blog is still based on 1.0 syntax.
I could possibly help fix those blog issues / migrate to 2.0 syntax but I don't know in which direction shall I go now.
We'll apply Andy's patch, but possibly with some changes. Sergiu is reviewing it AFAIK. Sergiu, any update on this? Thanks -Vincent
Kind regards Lukasz
participants (4)
-
Marius Dumitru Florea -
Vincent Massol -
Zhaolin Feng -
Łukasz Skowroński