Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Hitoshi Ozawa
Difference between Preview and Editor view
11. Mai 2011 16:27
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7952

Eintrittsdatum: 23. März 2010

Neue Beiträge

What I'm seeing in the Creole editor view is different from what I see in the Preview (=Published content) in the Wiki editor.

In the attached figure, the top yellow section is the preview. The text is displayed below the image, but in the editor view, the text is to the right of the image. In the actual published content, the text is appearing below the image.
Is it possible to make editor view and the preview view layout be the same?

http://www.liferay.com/community/wiki/-/wiki/Main/%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E9%A0%85%E7%9B%AE

EDIT: I've changed the above page to use HTML instead of Creole, but the problem still remains
Anhang

Anhänge: wiki.jpg (59,7k)
Iliyan Peychev
RE: Difference between Preview and Editor view
16. Mai 2011 01:02
Antwort

Iliyan Peychev

LIFERAY STAFF

Rang: New Member

Nachrichten: 23

Eintrittsdatum: 17. November 2010

Neue Beiträge

Hi Hitoshi,

Let's first clarify the expected behavior.

The content of the page in your post is a table with two columns. The first one contains an image and the second one contains text (Wikiページに項目を追加した例). The text appears on right in editor and after publishing - which is correct, isn't it?

Can you provide us more information how to reproduce this issue?

Just to note:
Creole 1.0 specification allows tables and we are supporting them too, but if you want some advanced formatting it would be better if you use HTML formatting instead.
Hitoshi Ozawa
RE: Difference between Preview and Editor view
16. Mai 2011 03:53
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7952

Eintrittsdatum: 23. März 2010

Neue Beiträge

The content of the page in your post is a table with two columns. The first one contains an image and the second one contains text (Wikiページに項目を追加した例). The text appears on right in editor and after publishing - which is correct, isn't it?


In the Preview and the final output, the text seems to be placed outside the table instead of the second column - that's why it's below the table instead of being next to the image. You'll be able to reproduce this by placing a image using the following:
{{image name}} some text

but if you want some advanced formatting it would be better if you use HTML formatting instead. ..


That's exactly what I did. emoticon Still, I think there is a bug in the Creole editor. I brought this question up based on what I found on Liferay.com, but if this is the actual 6EE version, I'll probably have to remove Creole for my customers.
Another reason I'm using Creole is the images. Where are the images attached to a page in HTML formatting?
Iliyan Peychev
RE: Difference between Preview and Editor view
16. Mai 2011 06:55
Antwort

Iliyan Peychev

LIFERAY STAFF

Rang: New Member

Nachrichten: 23

Eintrittsdatum: 17. November 2010

Neue Beiträge

Hitoshi Ozawa:
You'll be able to reproduce this by placing a image using the following:
{{image name}} some text


Thanks, we were able to reproduce this issue now.
What Creole editor does is the right one. It produces the following code:
<p>
image_here some_text_here
</p>

After preview/publish, the image is being wrapped with a table and that's the reason for these differences.

Hitoshi Ozawa:

Still, I think there is a bug in the Creole editor.


There is no bug in Creole editor. Just the opposite - it produces the correct code. There is no reason to wrap images with tables.

Hitoshi Ozawa:

I brought this question up based on what I found on Liferay.com, but if this is the actual 6EE version, I'll probably have to remove Creole for my customers.


Creole is simplified format and its purpose is not to replace HTML and vice versa.

BTW, right now we are creating an own Creole parser, which will allow us to handle situations like this much more easily.

Hitoshi Ozawa:

Another reason I'm using Creole is the images. Where are the images attached to a page in HTML formatting?


When using the html editor, you can upload images anywhere where you have enough permissions, but it is recommended to upload attachemnts and copy the link.
Hitoshi Ozawa
RE: Difference between Preview and Editor view
16. Mai 2011 15:29
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7952

Eintrittsdatum: 23. März 2010

Neue Beiträge

it is recommended to upload attachemnts and copy the link. ..


That's too much of a hassle.

Thanks for replying. Marking this answered.
Iliyan Peychev
RE: Difference between Preview and Editor view
17. Mai 2011 00:11
Antwort

Iliyan Peychev

LIFERAY STAFF

Rang: New Member

Nachrichten: 23

Eintrittsdatum: 17. November 2010

Neue Beiträge

Hitoshi Ozawa:

That's too much of a hassle.


If you can give us some suggestions, please, go ahead. We would appreciate this.
Hitoshi Ozawa
RE: Difference between Preview and Editor view
17. Mai 2011 17:28
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7952

Eintrittsdatum: 23. März 2010

Neue Beiträge

I think most of us will appreciate if we can just select images attached to a page with the following steps:
1. Select "Image" icon from the editor icon menu
2. Select "Images attached to a page" option
3. Select image to paste

OR

1. Select "Images attached to a page" icon from the editor icon menu
2. Select image to paste
Iliyan Peychev
RE: Difference between Preview and Editor view
18. Mai 2011 00:20
Antwort

Iliyan Peychev

LIFERAY STAFF

Rang: New Member

Nachrichten: 23

Eintrittsdatum: 17. November 2010

Neue Beiträge

Okay, thanks.
We are working on a solution and I hope it will be released soon.
Hitoshi Ozawa
RE: Difference between Preview and Editor view
4. Oktober 2012 17:09
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7952

Eintrittsdatum: 23. März 2010

Neue Beiträge

Ahamed, if you have a new question, please create a new thread instead of mixing your question to other's thread. It causes confusion and is against the rules of this forum.

Also, please post your question to the correct forum. If you have question on using liferay, create a new thread in the 2. Using Liferay forum instead of here.