Skip to content

Instantly share code, notes, and snippets.

@redesigned
Last active December 27, 2015 01:19
Show Gist options
  • Save redesigned/7243962 to your computer and use it in GitHub Desktop.
Save redesigned/7243962 to your computer and use it in GitHub Desktop.
Magento Editing Tips
Editing Tips:
When editing any CMS Static Block or CMS Page, I highly recommend first clicking the button to hide the WYSIWYG editor, and copying all the existing code out to a safe location, that way you have a back up in case your edits go awry or mess up the page somehow. Then click the button to reenable the WYSIWYG editor and make your edits and save. Refresh the corresponding frontend page in your browser to make sure everything looks good. If you need to restore the page/block due to some error/glitch/problem simply re-edit that page/block, hide the WYSIWYG and copy the code you saved in your safe location back in and resave the page/block and everything will be back to how it was before your edit.
When editing formatted content it is better to click into that content and use the keyboard to delete and type the new content rather they select highlighting and typing. Same with editing links, it is better to click into them and click the link button or edit the text rather then select highlighting them and clicking the link button or editing the text. Same with editing images, it is better to click onto them and click the image button rather then select highlighting them and replacing them and the surrounding html code altogether with new code. The reason for those is clicking into an element allows you to change its contents, but select highlighting replaces all the underlying code with new code that may or may not be what you wanted. This is a non-intuitive aspect to the WYSIWYG editor that is helpful to understand.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment