+1
Not a bug

HTML Formatting removed when saving a post

Yan 5 years ago in Usability & Interface • updated by Clinton Coney 5 years ago 19
I added some color to one of my post using <font color= "blue"></font> in the html editor. It seemed to work when I came back to regular editing mode, but when I posted the post, all formatting was gone.

Answers

Answer
Under review
Hello Yan.
It is not a bug. We are filtering tags which not allowed for us.
Please tell where do you want to use it (topic or html block) and we will try to do something for you.
+1
PINNED
Not a bug
You can check provided topic now. 

We added link with color class and put class definition in your custom CSS section. Find out it at the bottom part of your custom CSS.

/* Custom link colors added by UE team */
.ue-content .link-red{color:#ff0000};
Answer
Under review
Hello Yan.
It is not a bug. We are filtering tags which not allowed for us.
Please tell where do you want to use it (topic or html block) and we will try to do something for you.
Hi Vladimir, 

I work with Yan and we are both experiencing the same issue.

For instance, I am trying to customise a page's layout so that we can direct people to certain areas from the default forum page.

I have been having issues with Font tags too and the Color component being stripped.

Below is an example of some code that I have tried to use which then gets stripped of color tags and some others.

This is in the "Custom Text" module.

<u style="font-weight: bold;"><strong>Forums</strong></u><br>
<br>
<ul>
<li><strong><a href="/forum/19292-micromine/" target="_blank"><font color="#387C2B">Micromine</font></a><br/>
</strong></li>
<li><strong><a href="/forum/30083-micromine-beta/" target="_blank"><font color="red">Micromine BETA</font></a><br/>
</strong></li>
<li><strong><a href="/forum/19297-geobank/" target="_blank"><font color="#0081C6">Geobank</font></a><br/>
</strong></li>
<li><strong><a href="/forum/21675-russkij/" target="_blank">Русский</a><br/>
</strong></li>
</ul>
<br/>
<strong><u>Useful Documents</u></strong><br/><br/>
<br/>
Sorry for too late answer.
You can do it using "class" in "a" element. And add this class to your custom CSS.
Thanks Vladimir, any chance that we can have the tags unblocked on our forum?

As Yan has said below, we would like to use "color" tags for posts not only in the forum structure.

Thanks!
You can use classes with posts too. Font is truncating by our third-party HTML redactor. Will see what we can do.
Ok, thanks Vladimir.

I'll have a play around with the the classes and CSS today, however it would be easier if we could do it in the HTML when posting :)
+1
I mean add class to your custom CSS
.link-red{color:#ff0000}
and then anywhere in html editor write
<a href="" class="link-red">test</a>
Thanks Vladimir, we appreciate all your help.

I'll have a go at fleshing out our custom CSS today and get back to you if we need any more assistance.
im my situation, I was writing a new topic, but i supposed it would be nice to have that flexibility everywhere, especially when you give the option to edit the html.
+1
We cleanup code for security purposes to prevent possible spoofing, between users. Anyway we consider about extending allowed HTML tags and attrs or even adding ability to work with colors directly from editor interface.
Vladimir, I haven't had any success getting the CSS code to work, can you assist further please?
Can you create topic within your community and give us permission to edit and link to it, so we able to prepare example for you. You can post link here.
Hi Sergey, I've been using the Sandbox to test it out.

You can use this topic if you like: http://forum.micromine.com/topic/431692-/

How do can grant you permission to edit this topic?

I have reverted the CSS code that I put in the project as it wasn't working.
Open https://micromine.userecho.com/settings/forum/priv...
Choose your Sandbox forum, and then add real.space.man@gmail.com to the Private users emails section
Done.

Thanks Sergey.
+1
PINNED
Not a bug
You can check provided topic now. 

We added link with color class and put class definition in your custom CSS section. Find out it at the bottom part of your custom CSS.

/* Custom link colors added by UE team */
.ue-content .link-red{color:#ff0000};
Sorry to be a pain but can we do this with just plain text not links as well?

Say if I wanted to make this word red instead of black?
+1
Check example again, we marked color word in it.
Also color class slightly extended.
http://forum.micromine.com/topic/431692-/
Excellent! Thanks for that Sergey!