Jetpack/Porting to MDN: Difference between revisions

Jump to navigation Jump to search
Line 50: Line 50:
===Dealing with images===
===Dealing with images===
For images:
For images:
1) Find them in your SDK installation at doc/static-files/media/.
# Find them in your SDK installation at doc/static-files/media/.
2) Upload them to MDN by clicking "Attach Files" down at the bottom.
# Upload them to MDN by clicking "Attach Files" down at the bottom.
3) Then you can embed them in the article by clicking the button in the WYSIWYG editor just above the "B", and finding them in the dialog that appears.
# Then you can embed them in the article by clicking the button in the WYSIWYG editor just above the "B", and finding them in the dialog that appears.


If the image is big, make sure the "Width" and "Height" fields are empty, or the image will be distorted.
If the image is big, make sure the "Width" and "Height" fields are empty, or the image will be distorted.


Generally I think centred images look nice. I do this by selecting the "Advanced" tab in the image-insertion dialog and pasting this" "display: block; margin-left: auto; margin-right: auto;" into the "Style" box.
Generally I think centred images look nice. I do this by selecting the "Advanced" tab in the image-insertion dialog and pasting this" "display: block; margin-left: auto; margin-right: auto;" into the "Style" box.
canmove, Confirmed users
737

edits

Navigation menu