Search…

X3 Photo Gallery Support Forums

Search…
 
dark-rebel
Experienced
Topic Author
Posts: 24
Joined: 17 Feb 2015, 15:50

Formating Error using style templates and editor

03 Feb 2016, 09:46

Hi,

i used the content editor and added a "about me" template which contains HTML code.

When i now use the WYSIWYG editor to get italic text it uses the asteriks * in front of the text but this is not translates into italic text on the website. It still shows the "*" in the text.

Is there a way to switch in between the template to the regular formating tags or do i need to take "<i>" tags instead?

Thanks
Stefan
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Formating Error using style templates and editor

03 Feb 2016, 13:06

dark-rebel wrote:When i now use the WYSIWYG editor to get italic text it uses the asteriks * in front of the text but this is not translates into italic text on the website. It still shows the "*" in the text.
This is called markdown, and the asterisk should be before AND after the text that it to be italic. It is this simple:
Code
*This is italic*
dark-rebel wrote:Is there a way to switch in between the template to the regular formating tags or do i need to take "<i>" tags instead?
I have no idea why you would want to switch from a super-easy *italic* to a clumsy <i>italic</i>. You can write html tags directly in the content, but the editor buttons always use markdown.

As you can see in the content editor, if you select some text and click the italic button, it will surround the selected text with *asterisks*. In your case, you likely edited something before the ending asterisk, so it was ultimately removed. This of course would also happen with html tags.

Markdown
https://help.github.com/articles/basic- ... ng-syntax/
http://www.markdown-tutorial.com/
http://www.makeuseof.com/tag/learning-m ... eb-faster/
http://blog.codinghorror.com/toward-a-b ... -tutorial/