Render Html page resoureces(image,js,css,cdn) in confluence Html include Macro.

Mahesh Pawar April 29, 2018

I have a HTML page in apache with resources & goes like  (http://IP/EnvMgmt/Dash.html).

The HTML code includes

<link rel="stylesheet" href="bootstrap.min.js">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

Now i have used HTML include to show the HTML page via the Page URL (i.e. http://IP/EnvMgmt/Dash.html ) & it shows the HTML .

 

 

                  confPage.png

But does Render bootstrap & jqury.

Please provide solution.

1 answer

0 votes
Stefan Mueller
Contributor
February 25, 2019

Hello,
I face the same problem, including Bootstrap via HTML Macro

  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>

alters the buttons on the Confluence pages, which makes it hardly usable. 

I found Limiting scope of JavaScript source, could that be a solution, I haven't got it to work yet :(.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events