Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Provide Indent/Unindent in Edit menu. #1095

Merged
merged 5 commits into from
Jun 21, 2012

Conversation

RaymondLim
Copy link
Contributor

Fix #1057

@ghost ghost assigned jasonsanjose Jun 21, 2012
@jasonsanjose
Copy link
Member

Reviewing

return;
}

CodeMirror.commands.indentMore(editor._codeMirror);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see we use this pattern in Editor.js. Any idea why we wouldn't call the method on the instance instead? editor._codeMirror.execCommand("indentMore")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know that you can call it with execCommand. So I just fixed it.

@jasonsanjose
Copy link
Member

Done with initial review. Need to merge with master to remove menu IDs.

@jasonsanjose
Copy link
Member

Looks good. Merging.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Indent/Outdent are not in the menus.
2 participants