Joni de Campos
Posts: 0
Joined: Fri Dec 11, 2015 12:21 pm

BUG: Problem with Bootstrap HTML component. Destroying javascript tag when you save.

The following code inside a bootstrap HTMl cmomponent is being breaking the tag when save

The bellow code is placed inside the Edit HTML:

%children%

Then Save.

When Edit again we find :

%children%


Code: Select all

 //This is a comment 

So it is missing the

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

BUG: Problem with Bootstrap HTML component. Destroying javascript tag when you save.

Hi Joni -

I'm not quite sure that I understand your issue here -- could you please explain it with screenshots?

Joni de Campos
Posts: 0
Joined: Fri Dec 11, 2015 12:21 pm

BUG: Problem with Bootstrap HTML component. Destroying javascript tag when you save.

Open bootstrap HTML Component to edit:
Image

Save...

Open the HTML Editor again:

the

Joni de Campos
Posts: 0
Joined: Fri Dec 11, 2015 12:21 pm

BUG: Problem with Bootstrap HTML component. Destroying javascript tag when you save.

So..we can't get javascript inside the HTML ...

Galyna Abramovych
Site Admin
Posts: 84
Joined: Tue Mar 22, 2016 6:03 pm

BUG: Problem with Bootstrap HTML component. Destroying javascript tag when you save.

Hello Joni,

No, you are wrong here.
This behavior (deletion) is intentional because the Angular editor is of a concept that differs from that of JQM.

Joni de Campos
Posts: 0
Joined: Fri Dec 11, 2015 12:21 pm

BUG: Problem with Bootstrap HTML component. Destroying javascript tag when you save.

Understood.

So, suppose I need to integrate the HTML set as a DIV inside the Angular Editor with javascript routines, like getting a JSON array from a REST Service I would simple use {{ jsonValue}}, where jsonValue would be a $scope.jsondValue variable set in another routine ?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

BUG: Problem with Bootstrap HTML component. Destroying javascript tag when you save.

Hello Joni,

It'll add a html layout as a simple text. If you want to add a "real" html layout into your component, please use an attribute "ng-bind-html" for that:
https://docs.angularjs.org/api/ng/dir...

Return to “Issues”