web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Editor removes span IDs
Power Pages
Unanswered

Editor removes span IDs

(0) ShareShare
ReportReport
Posted on by 601

Dear,

 

For some reason the Power Pages Editor (and also the Portal Editor) removes my span ID tags...

 

this

<p>Number of products <span id="numberofproducts"></span></p>

becomes

<p>Number of products <span></span></p>

after editing other parts of the page in the editor...

 

In the Portal Management (model driven) app, it is not changed...

I use these span IDs to update the values using jquery...

 

Any idea why it is doing so?

Categories:
I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    Hi, are you using Visual Studio Code Web to make the changes?

    I just tried here now and didn't have any issues.. I remember having issues with the old Portal editor but not the new Power Pages one

  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @KoenJanssensPD 

    Can you update your portal to the newer version by following the below steps and giving it a try? 

     

    1.  Go to https://make.powerapps.com/ 

    2. Choose the right environment 

    3. Select your portal / Power Pages site > Three dots > settings > Administration 

    4.  Choose enable portal for an early upgrade  and hit update 

     

    ragavanrajan_0-1667862215240.png

     

    Once done. 

     

    ------------
    In Design Studio

    1. Pres sync configuration and press "Ctrl+F5" 

    2. Now if you hit the edit in the VScode icon 

    3. Your span id will be retained  

     


    Hope it helps. 
    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

  • KoJaPD Profile Picture
    601 on at

    No, I edited the page in the portal management app, cleared the cache, previewed the site which was working fine. Then I switch to the power pages (WYSIWYG) editor, to just change some other parts of the page, previewed the site and noticed that all IDs (of multiple spans) were gone and therefore braking my code...

  • KoJaPD Profile Picture
    601 on at

    Thanks, I will try that later. Does this mean it is a known (and documented) bug?

  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    I just followed these steps and still wasn't able to replicate

    I would suggest opening a ticket to Microsoft in case this happens again

     

    I remember having this issue in the past, but I believe this was fixed ages ago, so you shouldn't be facing it now 

  • KoJaPD Profile Picture
    601 on at

    It seems that my portal has more related problems. The portal editor and power page editor behave strange, and I start thinking it has something to do with the languages I have added, it has EN-US and NL-BE, where NL-BE is the default. But somehow the editor always changes the EN-US templates and pages, messes up the Web Link Sets,...

    Can I somehow reset the portal without losing all my customizations, hoping that the reset will solve all these problems?

  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    That's an interesting issue. I will create a new Portals with multi-language enabled where English is not the default one and try to replicate that. 

    There is a way to restart the Portals without losing customizations, you can go in the admin centre via New tab (powerplatform.com)

    Select your environment, click on manage resources on your Website

    And then click Restart. This will restart the Azure resources. 

    OliverRodrigues_0-1668498994933.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
sannavajjala87 Profile Picture

sannavajjala87 38 Super User 2026 Season 1

#2
Valantis Profile Picture

Valantis 35

#3
Fubar Profile Picture

Fubar 23 Super User 2026 Season 1

Last 30 days Overall leaderboard