# Landing page html editor doesn't work

**URL:** <https://forum.mautic.org/t/landing-page-html-editor-doesnt-work/3848>\
**Category:** Product Support\
**Created:** [July 11, 2016, 6:13pm UTC](https://forum.mautic.org/t/landing-page-html-editor-doesnt-work/3848 "2016-07-11T18:13:07Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![knishikawa](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@knishikawa](https://forum.mautic.org/u/knishikawa)\
**Post date:** [July 11, 2016, 6:13pm UTC](https://forum.mautic.org/t/landing-page-html-editor-doesnt-work/3848/1 "2016-07-11T18:13:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![knishikawa](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@knishikawa](https://forum.mautic.org/u/knishikawa)\
**Post date:** [July 11, 2016, 6:13pm UTC](https://forum.mautic.org/t/landing-page-html-editor-doesnt-work/3848/2 "2016-07-11T18:13:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![knishikawa](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@knishikawa](https://forum.mautic.org/u/knishikawa)\
**Post date:** [July 11, 2016, 6:28pm UTC](https://forum.mautic.org/t/landing-page-html-editor-doesnt-work/3848/3 "2016-07-11T18:28:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![knishikawa](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@knishikawa](https://forum.mautic.org/u/knishikawa)\
**Post date:** [July 11, 2016, 6:43pm UTC](https://forum.mautic.org/t/landing-page-html-editor-doesnt-work/3848/4 "2016-07-11T18:43:03Z")

</div>

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? ☹ ☹

---

<div class="post-metadata">

**Author:** ![JustinT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/justint/32/89_2.png) [@JustinT](https://forum.mautic.org/u/JustinT)\
**Post date:** [July 12, 2016, 10:44pm UTC](https://forum.mautic.org/t/landing-page-html-editor-doesnt-work/3848/5 "2016-07-12T22:44:21Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![knishikawa](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@knishikawa](https://forum.mautic.org/u/knishikawa)\
**Post date:** [July 13, 2016, 7:15am UTC](https://forum.mautic.org/t/landing-page-html-editor-doesnt-work/3848/6 "2016-07-13T07:15:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [July 13, 2016, 7:59am UTC](https://forum.mautic.org/t/landing-page-html-editor-doesnt-work/3848/7 "2016-07-13T07:59:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![knishikawa](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@knishikawa](https://forum.mautic.org/u/knishikawa)\
**Post date:** [July 13, 2016, 8:20am UTC](https://forum.mautic.org/t/landing-page-html-editor-doesnt-work/3848/8 "2016-07-13T08:20:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![knishikawa](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@knishikawa](https://forum.mautic.org/u/knishikawa)\
**Post date:** [July 13, 2016, 8:33am UTC](https://forum.mautic.org/t/landing-page-html-editor-doesnt-work/3848/9 "2016-07-13T08:33:29Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![knishikawa](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@knishikawa](https://forum.mautic.org/u/knishikawa)\
**Post date:** [July 13, 2016, 8:34am UTC](https://forum.mautic.org/t/landing-page-html-editor-doesnt-work/3848/10 "2016-07-13T08:34:58Z")

</div>

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 ☹

---

<div class="post-metadata">

**Author:** ![knishikawa](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@knishikawa](https://forum.mautic.org/u/knishikawa)\
**Post date:** [July 13, 2016, 12:27pm UTC](https://forum.mautic.org/t/landing-page-html-editor-doesnt-work/3848/11 "2016-07-13T12:27:51Z")

</div>

> [@13210:@escopecz](#):
>
> @Francesco the issues should be fixed in Mautic 2.0.1 which was released yesterday.

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

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 ☹ ☹

what can i do to solve this problem?

---

<div class="post-metadata">

**Author:** ![knishikawa](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@knishikawa](https://forum.mautic.org/u/knishikawa)\
**Post date:** [July 13, 2016, 12:33pm UTC](https://forum.mautic.org/t/landing-page-html-editor-doesnt-work/3848/12 "2016-07-13T12:33:40Z")

</div>

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](http://landing.cittanet.net/corso-aula) but it doesn’t work ☹

---

<div class="post-metadata">

**Author:** ![knishikawa](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@knishikawa](https://forum.mautic.org/u/knishikawa)\
**Post date:** [July 13, 2016, 12:45pm UTC](https://forum.mautic.org/t/landing-page-html-editor-doesnt-work/3848/13 "2016-07-13T12:45:19Z")

</div>

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

i just saw that this html code:

```auto
<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:

```auto
<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

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [July 13, 2016, 1:36pm UTC](https://forum.mautic.org/t/landing-page-html-editor-doesnt-work/3848/14 "2016-07-13T13:36:30Z")

</div>

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

```auto
<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…

---

<div class="post-metadata">

**Author:** ![alexb](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexb](https://forum.mautic.org/u/alexb)\
**Post date:** [July 13, 2016, 1:42pm UTC](https://forum.mautic.org/t/landing-page-html-editor-doesnt-work/3848/15 "2016-07-13T13:42:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![knishikawa](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@knishikawa](https://forum.mautic.org/u/knishikawa)\
**Post date:** [July 13, 2016, 1:42pm UTC](https://forum.mautic.org/t/landing-page-html-editor-doesnt-work/3848/16 "2016-07-13T13:42:59Z")

</div>

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

```auto
<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](http://landing.cittanet.net/corso-aula)

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

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [July 14, 2016, 7:29am UTC](https://forum.mautic.org/t/landing-page-html-editor-doesnt-work/3848/17 "2016-07-14T07:29:38Z")

</div>

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

Will be part of Mautic 2.1.0.

---

<div class="post-metadata">

**Author:** ![knishikawa](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@knishikawa](https://forum.mautic.org/u/knishikawa)\
**Post date:** [July 21, 2016, 2:25pm UTC](https://forum.mautic.org/t/landing-page-html-editor-doesnt-work/3848/18 "2016-07-21T14:25:20Z")

</div>

[quote=13293:@escopecz]The fix for this issue is here: [https://github.com/mautic/mautic/pull/2032](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
