diff --git a/python/educational-core/course-creator/src/com/jetbrains/edu/coursecreator/actions/placeholder/CCEditAnswerPlaceholder.java b/python/educational-core/course-creator/src/com/jetbrains/edu/coursecreator/actions/placeholder/CCEditAnswerPlaceholder.java index 103ef2e4557b..ef5834075af1 100644 --- a/python/educational-core/course-creator/src/com/jetbrains/edu/coursecreator/actions/placeholder/CCEditAnswerPlaceholder.java +++ b/python/educational-core/course-creator/src/com/jetbrains/edu/coursecreator/actions/placeholder/CCEditAnswerPlaceholder.java @@ -32,7 +32,7 @@ public class CCEditAnswerPlaceholder extends CCAnswerPlaceholderAction { if (dlg.showAndGet()) { final String answerPlaceholderText = dlg.getTaskText(); answerPlaceholder.setTaskText(answerPlaceholderText); - answerPlaceholder.setLength(StringUtil.notNullize(answerPlaceholderText).length()); + answerPlaceholder.setLength(answerPlaceholder.getActiveSubtaskInfo().isNeedInsertText() ? 0 : StringUtil.notNullize(answerPlaceholderText).length()); answerPlaceholder.setHints(dlg.getHints()); } }