From 5b57b10c57b173b8d874d8110c0ff0f1a7ada154 Mon Sep 17 00:00:00 2001 From: Anna Bulenkova Date: Tue, 9 Dec 2014 19:14:41 +0100 Subject: [PATCH] Markdown fix --- tutorials/working_with_editor.md | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/tutorials/working_with_editor.md b/tutorials/working_with_editor.md index ada1a32d1..95236c0ba 100644 --- a/tutorials/working_with_editor.md +++ b/tutorials/working_with_editor.md @@ -23,16 +23,11 @@ A reference to an instance of the editor can be obtained by calling To access the editor instance directly the following ways can be used: -* If -[DataContext] (https://github.com/JetBrains/intellij-community/blob/master/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/DataContext.java) -object is available -```final Editor editor = CommonDataKeys.EDITOR.getData(context); -``` -* If -[ActionEvent] (https://github.com/JetBrains/intellij-community/blob/master/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/AnActionEvent.java) -object is available -```final Editor editor = actionEvent.getData(CommonDataKeys.EDITOR); -``` +* If [DataContext] (https://github.com/JetBrains/intellij-community/blob/master/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/DataContext.java) +object is available ```final Editor editor = CommonDataKeys.EDITOR.getData(context);``` +* If [ActionEvent] (https://github.com/JetBrains/intellij-community/blob/master/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/AnActionEvent.java) +object is available ```final Editor editor = actionEvent.getData(CommonDataKeys.EDITOR);``` + ##Obtaining content: document, caret, selection, and more ##Document. [Document.java] (https://github.com/JetBrains/intellij-community/blob/master/platform/core-api/src/com/intellij/openapi/editor/Document.java)