Hello. I am working on an existing website with an Umbraco CMS. I would like to start a new paragraph in a text block but although I am adding a carriage return it is not showing on the website. How do I do this?
I'm afraid it depends on what field type you are using and also how the developers who built the site implemented this.
If you are using the rich-text editor (ie. an editor with icons above it that you can use to format text, make bold etc like Word) then simply hitting Enter will create a new paragraph. The rich-text editor takes care of turning newlines into the correct HTML paragraph tags.
However, if you are using a plain-text textbox that has no formatting options then hitting Enter will just create a newline character. Now, by default in HTML, newlines are ignored - they aren't part of how an HTML document is formatted.
So adding a carriage return in a plain text editor won't result in a paragraph - it will be ignored - which is what you are experiencing. For this to work the people who built your site will need to do one of these things:
Give you a rich-text editor instead
Convert, in code, newlines to HTML <br> tags
Use some CSS - white-space: pre-line - that makes HTML treat newlines as breaks
Creating a new paragraph in text
Hello. I am working on an existing website with an Umbraco CMS. I would like to start a new paragraph in a text block but although I am adding a carriage return it is not showing on the website. How do I do this?
I'm afraid it depends on what field type you are using and also how the developers who built the site implemented this.
If you are using the rich-text editor (ie. an editor with icons above it that you can use to format text, make bold etc like Word) then simply hitting Enter will create a new paragraph. The rich-text editor takes care of turning newlines into the correct HTML paragraph tags.
However, if you are using a plain-text textbox that has no formatting options then hitting Enter will just create a newline character. Now, by default in HTML, newlines are ignored - they aren't part of how an HTML document is formatted.
So adding a carriage return in a plain text editor won't result in a paragraph - it will be ignored - which is what you are experiencing. For this to work the people who built your site will need to do one of these things:
<br>
tagswhite-space: pre-line
- that makes HTML treat newlines as breaksThat's great and very helpful. Many thanks Dan
is working on a reply...