Closed Bug 485665 Opened 15 years ago Closed 15 years ago

Insert picture does not appear in mozad.css and mozgn.css

Categories

(support.mozilla.org :: Knowledge Base Software, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: cilias, Assigned: paulc)

Details

(Whiteboard: sumo_only)

Attachments

(1 file)

The new method of uploading an image for an article and inserting it into an article afterward, was done in bug 450548.

Now, if we try to insert an image while the editor is using a stylesheet other than mozkb.css, the "Insert Picture" section does not appear after the image is uploaded. 

1. Go to any article that does not use mozkb.css, and click on edit.
<https://support-stage.mozilla.org/en-US/kb/Improving+articles> or <https://support-stage.mozilla.org/en-US/kb/Introduction+to+Live+Chat>.
2. In the "Upload picture:" section, click [Browse...] and select an image to upload.
3. Click on [Preview].

Expected result:
There should be an "Insert Picture" in the editor, with a thumbnail of the uploaded image.

Actual result:
No "Insert Picture" section is added, thus image cannot be inserted into the article.

If you move the article to the Live Chat Documentation category, then try to edit it, the image you tried to upload before will appear in the editor. So the upload works; the problem is just that the "Insert Picture" section does not appear.
I'll check it out :)
Assignee: nobody → paul.craciunoiu
Chris, could you cc me on bug 450548? I can't access it to see more details.
I can't seem to get it to work with Live Chat Documentation category.  So I can't fix bug 487947
Blocks: 487947
No longer blocks: 487947
It seems that mozgn is using the original tiki editpage template. Can we make it use one mozad.css? In other words, is it okay if the editpage for Introduction+to+Live+Chat will become the same as Improving+articles?
Summary: Insert picture only appears in mozkb.css → Insert picture does not appear in mozad.css and mozgn.css
Target Milestone: --- → 1.3
Ideally, they should all be using the same editor (the mozkb.css one). That's bug 494101. For the interim, yes we can make it use mozad.css.
Great! Bug 494101 should revamp the editor to "merge" both of these. We can discuss that there.
Attached patch patch, v1Splinter Review
Simple patch to include it for mozad and create a soft link for mozgn.
Attachment #387560 - Flags: review?(smirkingsisyphus)
Attachment #387560 - Flags: review?(laura)
Comment on attachment 387560 [details] [diff] [review]
patch, v1

Be careful patching this to prod b/c of symlink.
Attachment #387560 - Flags: review?(laura) → review+
r29667 / r
Yeah, I looked it over carefully. See the revision numbers above! I even did a checkout of templates/styles ;)
Thanks Laura!
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: 1.3 → 1.2.1
Oops, second # was r29668
Chris, mind taking verification on this?  If not, I'll be happy to do it; thanks!
Attachment #387560 - Flags: review?(smirkingsisyphus)
Whiteboard: sumo_only
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: