Elxis CMS Forum

Support => General => Topic started by: ROUBOS on February 11, 2012, 22:55:39

Title: Why is the WYSIWYG editor changing <br /> into <p> when editing html?
Post by: ROUBOS on February 11, 2012, 22:55:39
I'm trying to space out text and paragraphs using the editor, and every <br /> I enter in html, is swapped with a <p> instead, and pushes the text back up.
Title: Re: Why is the WYSIWYG editor changing <br /> into <p> when editing html?
Post by: webgift on February 12, 2012, 00:01:32
Use the enter key for <p> and ctrl+enter for <br/>.
Title: Re: Why is the WYSIWYG editor changing <br /> into <p> when editing html?
Post by: ROUBOS on February 12, 2012, 00:28:59
ctrl+enter does not work
Title: Re: Why is the WYSIWYG editor changing <br /> into <p> when editing html?
Post by: datahell on February 12, 2012, 11:37:24
shift + enter is for inserting a break.
Title: Re: Why is the WYSIWYG editor changing <br /> into <p> when editing html?
Post by: webgift on February 12, 2012, 12:32:58
Sorry. My mistake! Shift+Enter for <br/> as datahell wrote above correctly.
Title: Re: Why is the WYSIWYG editor changing <br /> into <p> when editing html?
Post by: xmanhattan on February 12, 2012, 13:09:06
You can also set the option in the bot if you want to use
Code: [Select]
<p> or <br /> depending on what you use more often.
Title: Re: Why is the WYSIWYG editor changing <br /> into <p> when editing html?
Post by: AllenG on February 13, 2012, 09:18:39
I also have encountered this kind of problem myself. I have a suggestion though, why don't you try going out of the WYSIWYG editor, use normal editor and manually press [Enter] to separate a paragraph. Hope this helps.  :)
Title: Re: Why is the WYSIWYG editor changing <br /> into <p> when editing html?
Post by: ROUBOS on February 17, 2012, 23:36:25
I dissable the  WYSIWYG editor from settings, enter my <div> (several div tags) and save.
When I enable the  WYSIWYG editor and go back into the article, it destroys my <div> tags again.  :'( :o >:(
Title: Re: Why is the WYSIWYG editor changing <br /> into <p> when editing html?
Post by: webgift on February 18, 2012, 12:22:18
<div> tags can be imported by the 'html' button on TinyMCE's editor toolbar.
Title: Re: Why is the WYSIWYG editor changing <br /> into <p> when editing html?
Post by: ROUBOS on February 18, 2012, 16:42:29
Yes I do import them through the html button, but once you update, you loose all id and class tags and more
Title: Re: Why is the WYSIWYG editor changing <br /> into <p> when editing html?
Post by: xmanhattan on March 12, 2012, 10:16:20
Depending on what you are doing with the divs, if you add some lines to template_css.css like

Quote
p.avs { font-family: "Arial, Verdana, sans-serif; font-size: 12px; }
p.tnr { font-family: "Times New Roman", Times, serif; font-size: 12px; }


then you will find them at the bottom of the list in the style drop down.