Why when I add html code in a HTML macro can I then not edit the page?

I have a page with text and one HTML macro.

Without the macro the page is fine.

If I place HTML code into the Macro, I can save and it display correctly and works as expected - however if I then go to EDIT the page I get a message telling me the page doesnt exist or I do not have permission to change it.

The page does exist, and I do have access to change it...it only seems to screw up when I add the code....

Below is the code - its a widget from DESK.com (our helpdesk).

<!--If you already have jquery on the page you don't need to insert this script tag-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>

<link href="https://d3jyn100am7dxp.cloudfront.net/assets/widget_embed_191.cssgz?1369806731" media="screen" rel="stylesheet" type="text/css" />
<!--If you already have fancybox on the page this script tag should be omitted-->
<script src="https://d3jyn100am7dxp.cloudfront.net/assets/widget_embed_libraries_191.jsgz?1369806731" type="text/javascript"></script>

                        <script>
                                
                                // ********************************************************************************
                                // This needs to be placed in the document body where you want the widget to render
                                // ********************************************************************************
                                
                                new DESK.Widget({ 
                                        version: 1, 
                                        site: 'altodigital.desk.com', 
                                        port: '80', 
                                        type: 'email', 
                                        displayMode: 1,  //0 for popup, 1 for lightbox
                                        features: {  
                                        },  
                                        fields: { 
                                                ticket: { 
                                                        // desc: '',
                                // labels_new: '',
                                // priority: '',
                                // subject: '',
                                // custom_system: '',
                                // custom_due_date: '',
                                // custom_type_of_issue: ''
                                                }, 
                                                interaction: { 
                                                        // email: '',
                                // name: ''
                                                }, 
                                                email: { 
                                                        //subject: '', 
                                                        //body: '' 
                                                }, 
                                                customer: { 
                                                        // company: '',
                                // desc: '',
                                // first_name: '',
                                // last_name: '',
                                // locale_code: '',
                                // title: ''
                                                } 
                                        } 
                                }).render();  
                        </script>

2 answers

1 accepted

Ok it seems you have to surround the text in the HTML macro in HTML tags - I assumed that was what the Macro would be doing....


Never mind all sorted now.

Have also tried placing the code in an external HTML file and using the HTML Includes macro to display it. While it does render properly, if I go to 'edit' it, it just acts like its loading the edit page but nothing ever displays.

It must be to do with the above code causing a conflict when in edit mode but not sure what exactly.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,260 views 25 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you