Pagetitle components being retrieved with no editor

  • 1
  • Question
  • Updated 1 year ago
Within the last few weeks we've begun seeing an issue where pagetitle components retrieved do not include an 'editor'. We use this to display messages to our users in a lot of different contexts/pages and this is effecting a large number of our pages. Most of these are in pageload snippets. If the snippet starts with

<code> $(".nx-page").one("pageload", function(){</code>
we get pagetitles found with no editor so we get 'editor undefined' in the js console. If it starts with 

<code> $(document.body).one('pageload',function(){</code>
we get the pagetitles the way they should be. I could easily say just switch all our functions to document.body ones, but I know you guys advise using the other method. Also not all of the functions we throw messages from are pageload functions and those are behaving like the .nx-page ones and giving us pagetitles that do not have editors....
Photo of Jerry

Jerry

  • 1,150 Points 1k badge 2x thumb
  • like a rutabaga

Posted 1 year ago

  • 1
Photo of Jerry

Jerry

  • 1,150 Points 1k badge 2x thumb
If anyone has any insight into this, I'd really appreciate some help.
Photo of Jerry

Jerry

  • 1,150 Points 1k badge 2x thumb
Still no takers? maybe I should have felt like a more popular cabbage
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Sounds like a bug to me.

I'm wondering if there is just a timing issue there? Have you checked the pagetitle component in the console after the page is fully loaded? Just run skuid.$C('MyComponentId').editor in the javascript console and see if that works?

If that's the case, you could throw the call for the editor into a short timeout function, as a workaround until skuid gets this figured out.
Photo of Jerry

Jerry

  • 1,150 Points 1k badge 2x thumb
I haven't tried that yet, thanks. I'll give that a shot and reply here soon. Thanks for the reply :)