Mautic Community Forums

Landing page html editor doesn't work

Hello, i have an hosted mautic installation and i created a landing page before upgrade to 2.0.



I created on my computer an html code and i pasted it into html source landing page code.



It worked very good but now, when i try to update the code (just deleted 2 unordered list elements), the landing page losts all styles and i get strange code inside html source.

Hello, i have an hosted mautic installation and i created a landing page before upgrade to 2.0.

I created on my computer an html code and i pasted it into html source landing page code.

It worked very good but now, when i try to update the code (just deleted 2 unordered list elements), the landing page losts all styles and i get strange code inside html source.

i just tried to paste a backup code inside a page and it seems that mautic delete all … tag

i partially solved creating a google drive shared folder and i linked style in an external css but it doesn’t style all elements and i don’t know why.

Also it seems that saving an html page code tags are deleted (i.e. facebook pixel tracking code or google analytics tracikng code)

is there a way to solve this problem? :frowning: :frowning:

I too was wondering why suddenly all of my scripts and external resources are being stripped from my landing pages. I was able to build a theme that linked external css and js files. Is this only allowed from specified/white-listed hosts or certain files/libraries?

did you place facebook pixel or google analytics or any other code in an https hosted js file?

i tried with external css hosted on google drive but css rules are not completely applied

@Francesco the issues should be fixed in Mautic 2.0.1 which was released yesterday.

ah perfect! i’m going to try to paste backup code again :slight_smile:

it doesn’t work.

i pasted html code inside html code box and when i click apply i lost all html body content

editor transforms my code into this:

[code]!DOCTYPE html>

Corso Come creare contenuti straordinari per il web Corso Come creare contenuti straordinari per il web [/code]

this is the original code:

[code]

Corso Come creare contenuti straordinari per il web
	<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/classie/1.0.0/classie.min.js"></script>
	
	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.css" />
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" />
	
    <style type="text/css">

-------- ALL CSS RULES --------

<body>
    <script>GOOGLE ANALYTICS CODE</script>
	<div id="wrapper">
		HTML PAGE CODE
	</div>
</body>
[/code]

to write less i changed into
ALL CSS RULES the css style
GOOGLE ANALYTICS CODE the google analytics code
HTML PAGE CODE all pages html elements

the main problem is that now i cannot show the landing page :frowning:

i’m not able to paste my html content inside page :frowning:

at this time my landing page (active on some advertising campaign over facebook and over my websites) is a blank page and i’m not able to sell my products :frowning: :frowning:

what can i do to solve this problem?

I just created a third level domain into my webserver and i placed my landing page code inside it.

Then i tried to redirect 301 from landing page to my new address http://landing.cittanet.net/corso-aula but it doesn’t work :frowning:

Sorry for all of these posts…i hope this will help you solve the problem

i just saw that this html code:

<div class="btn-container"><a href="#compraora" style="-webkit-user-select: auto;" class="btn btn-primary btn-block btn-hero">PRENOTA ORA IL TUO INGRESSO</a></div>

when i try to visit landing page becomes like this:

<div class="btn-container"><a href="#compraora" style="-webkit-user-select: auto;" fr-original-style="-webkit-user-select: auto;" fr-original-class="btn btn-primary btn-block btn-hero">PRENOTA ORA IL TUO INGRESSO</a></div>

this brokes css style

Thanks for your inputs. I’ve tested your code. Firstly, the HTML must be valid. These bits aren’t:

<style type="text/css">
-------- ALL CSS RULES --------
</style>

<style type="text/css">
-------- ALL CSS RULES --------
</style>

But it doesn’t work even if I remove them. I’ll dig around what is causing it and fix it. I’ll also fix the link style issue. Stupid Froala editor is adding that even though no one asked for it…

Thank you @escopecz for fixing those issues with the Froala editor!
That seems to be a really tough beast.

[quote=13242:@escopecz]Thanks for your inputs. I’ve tested your code. Firstly, the HTML must be valid. These bits aren’t:

<style type="text/css">
-------- ALL CSS RULES --------
</style>

<style type="text/css">
-------- ALL CSS RULES --------
</style>

But it doesn’t work even if I remove them. I’ll dig around what is causing it and fix it. I’ll also fix the link style issue. Stupid Froala editor is adding that even though no one asked for it…[/quote]

of course html is valid, i removed code and i placed that words to simplify post. You can find full html code watching source code of this page: http://landing.cittanet.net/corso-aula

of course thank you for your work! Im’ glad to help you developing e great MA software

The fix for this issue is here: https://github.com/mautic/mautic/pull/2032

Will be part of Mautic 2.1.0.

[quote=13293:@escopecz]The fix for this issue is here: https://github.com/mautic/mautic/pull/2032

Will be part of Mautic 2.1.0.[/quote]

thank you escopecz… when will mautic 2.1.0 will be available? thank you