Closed
Bug 957378
Opened 11 years ago
Closed 11 years ago
Cannot edit content, ckeditor error (TypeError: r is undefined)
Categories
(developer.mozilla.org Graveyard :: Editing, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mikehenrty, Unassigned)
Details
(Whiteboard: [specification][type:bug])
What did you do?
================
I'm trying to edit the WebAPI doc page for Apps.getSelf()
https://developer.mozilla.org/en-US/docs/Web/API/Apps.getSelf
but am unable to when I click on the Edit button.
What happened?
==============
When I click on edit, the editor area is blank, and I see the following error in the JS console:
TypeError: r is undefined, ckeditor-min.js:3
What should have happened?
==========================
I should be able to edit the page.
Is there anything else we should know?
======================================
When I go to the Preview Changes view, I see this error:
TemplateExecutionError at document offset 3 in macro DomRef ([]) ( edit ):
Which looks like it has something to do with tag parsing:
Problem executing template DomRef:
1 | <p>{{ DomRef() }}</p>
-----------^
2 | <p>{{ non-standard_header() }}</p>
3 | <h2 id="Summary">Summary</h2>
TypeError: ejs:50
48|
49| %><%- result %></span>
>> 50| <%
51| function containsTag(tagList, tag) {
52| if (!tagList || typeof tagList == 'undefined') return 0;
53| if (!tag || typeof tag == 'undefined') return 0;
Cannot call method 'split' of undefined
at eval at <anonymous> (/data/www/developer.mozilla.org/kuma/kumascript/node_modules/ejs/lib/ejs.js:203:1)
at /data/www/developer.mozilla.org/kuma/kumascript/node_modules/ejs/lib/ejs.js:201:15
at /data/www/developer.mozilla.org/kuma/kumascript/lib/kumascript/templates.js:75:30
Reporter | ||
Updated•11 years ago
|
Component: General → Editing
Comment 1•11 years ago
|
||
We're on this ASAP (now).
Comment 2•11 years ago
|
||
PR is in for this, will be merged and pushed in a moment.
Comment 3•11 years ago
|
||
Fix pushed now.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 4•11 years ago
|
||
You guys are fast! Thank you!
btw, I'm still seeing the aforementioned error when I try to preview changes on that page:
> There are scripting messages on this page:
>
> TemplateExecutionError at document offset 3 in macro DomRef ([]) ( edit ):
Should I file a separate bug for this? Or perhaps this is just an error with the content of this page?
Flags: needinfo?(dwalsh)
Comment 5•11 years ago
|
||
That's a separate KumaScript bug. I'll have :sheppy look.
Flags: needinfo?(eshepherd)
Comment 6•11 years ago
|
||
(In reply to Michael Henretty [:mhenretty] from comment #4)
> You guys are fast! Thank you!
>
> btw, I'm still seeing the aforementioned error when I try to preview changes
> on that page:
>
> > There are scripting messages on this page:
> >
> > TemplateExecutionError at document offset 3 in macro DomRef ([]) ( edit ):
It's a known limitation of the macro system. Certain types of macro cannot be rendered in the previews, including that one. I think but am not sure there's a bug filed for that, so you might as well file one, just in case. :)
Flags: needinfo?(eshepherd)
Reporter | ||
Comment 7•11 years ago
|
||
(In reply to Eric Shepherd [:sheppy] from comment #6)
> It's a known limitation of the macro system. Certain types of macro cannot
> be rendered in the previews, including that one. I think but am not sure
> there's a bug filed for that, so you might as well file one, just in case. :)
Done: bug 957703. Thanks guys!
Flags: needinfo?(dwalsh)
Updated•5 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•