Skip to content

Commit

Permalink
Fixes emmetio#493 CaptureContext should work for jsx as well (emmetio…
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Apr 2, 2017
1 parent 4fce82e commit b4d3edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ define(function(require, exports, module) {
* @returns {Object}
*/
captureContext: function(editor, pos) {
var allowedSyntaxes = {'html': 1, 'xml': 1, 'xsl': 1};
var allowedSyntaxes = {'html': 1, 'xml': 1, 'xsl': 1, 'jsx': 1};
var syntax = editor.getSyntax();
if (syntax in allowedSyntaxes) {
var content = editor.getContent();
Expand Down

0 comments on commit b4d3edc

Please sign in to comment.