Git Product home page Git Product logo

printminion / magento-advanced-code-editor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from e-sites/magento-advanced-code-editor

0.0 2.0 0.0 938 KB

An advanced code editor that'll make it much easier to write clean markup for CMS pages, static blocks, product pages and Transactional Emails.

Home Page: http://www.magentocommerce.com/magento-connect/advanced-code-editor.html

License: Open Software License 3.0

PHP 31.60% HTML 7.66% JavaScript 57.98% CSS 2.75%

magento-advanced-code-editor's Introduction

Magento Advanced Code Editor

Extends Magento with an advanced code editor that'll make it much more easier to produce clean semantic markup for CMS related content as well as product pages and Transactional Emails.

##Introduction If you're familiar with Magento and you've spent some time working with it's WYSIWYG editor, you'll know that producing clean semantic HTML markup with the TinyMCE editor can be quite a hassle. Especially when fiddling around in the "design view" it'll often result in invalid or unwanted HTML. Of course you can open up the default source editor and go from there. But you probably know that this will not be very pleasant as well, the code looks like a big bowl of tag soup and editing it can give you a real headache.

This extension offers both a standalone editor as well as a plugin for Magento's WYSIWYG editor and is similar to your favorite IDE. It offers a lot of great features that will not only save you quite a bit of time but also makes editing code a lot easier.

alt tag

###CodeMirror Under the hood this extension uses CodeMirror and a handful of it's addons. In case you never heard of CodeMirror, let us quote the author of this great library real quick:

"CodeMirror is a versatile text editor implemented in JavaScript for the browser. It is specialized for editing code, and comes with a number of language modes and addons that implement more advanced editing functionality."

##Features The following features are available can be enabled or disabled via System > Configuration.

  • Fully customizable appearance
  • Code formatting
  • Syntax highlighting
  • Emmet support / keybindings
  • Search + find/replace functionality
  • Code folding
  • Auto-close tags
  • HTML autocomplete
  • HTML Lint
  • Highlight match tags
  • Highlight trailing whitespaces
  • Highlight occurences of selected text
  • Highlighting the active line
  • Custom scrollbars
  • Line wrapping

Also, you can change it's appearance by picking one of the 36 available themes or overriding the default font-size.

alt tag

##Getting started Aside from installing the extension through Magento Connect you can do this manually as well.

  1. Download the extension
  2. Copy / paste the contents in your Magento root directory
  3. Log out of the admin panel and remove all cache files
  4. Navigate to System > Configuration > E-sites > Advanced Code Editor and enable the extension

##Stand-alone editor As of version 0.5.0 it's possible to turn any textarea element (both in the admin panel as well as the front-end) into an advanced editor. By simply passing a matching CSS selector (e.g. a class or an ID) in the configuration panel you can target textarea's and transform them into a full-fledged editor including all available IDE-like features.

alt tag

##Transactional Emails As of version 0.4.0 the editor is available in the Transactional Emails section as well. Because it works as a standalone editor you do not have to install any other extension that provides a WYSIWYG editor in this particular section.

alt tag

##Browser support Browser support is similar to the support that CodeMirror offers. This means the desktop versions of the following browsers, in standards mode (HTML5 <!doctype html> recommended) are supported:

  • Firefox: version 4 and up
  • Chrome: any version
  • Safari: version 5.2 and up
  • Internet Explorer: version 8 and up
  • Opera: version 9 and up

##Credits We really must give credit to Marijn Haverbeke (of CodeMirror fame) and of course all it's contributors. Because let's be honest, all we did was wrap the library up in a Magento extension ;).

##License Copyright (C) 2015 E-sites, http://e-sites.nl/ Licensed under the OSL v3.0

magento-advanced-code-editor's People

Contributors

boye avatar printminion avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.