Returns in SiteCake

Hello,

First of all, thanks to the developers of this project. I am loving it!

The one minor issue i found is: one
is shown as two returns (ie two enters) in the editor (site cake 2.x).

But thats really the only problem i found! Thanks so much to all that worked on this.

Thanks!

When this double return happens? I can’t reproduce it.

Thanks for your quick answer Nik!

It happens when I press shift-enter one time at the end of an editable piece of content (p,h1,h2,etc).

The HTML becomes like this:

<h1>Lorem Ipsum<br></h1><p>dolor sit amet, consectetuer adipiscing elit. </p>

Which looks like this in the editor:

Lorem Ipsum

dolor sit amet, consectetuer adipiscing elit.


*But this:*

Lorem Ipsum

dolor sit amet, consectetuer adipiscing elit.


when the editor is closed. When the editor is opened back up, the return pops back up as well.

Also one more question: is there any way to insert images in the same region as text i.e. surrounded by text?

Thanks a lot!

Thanks for the report. I was able to reproduce it.

If you want to leave space after the paragraph, I think better way to do it is with CSS styles. Define two different styles for paragraph, one with bottom padding and one without it. In edit mode select the style that suits you from the dropdown on the toolbar.

Thank you Nik! Appreciate it.

One more thing: is there a way to insert images within a paragraph?

Currently Sitecake editor does not support floating text (that would wrap an image). It would be possible to have different CSS for editing and public mode, but I don’t recommend that.