2015-01-06 2 views
0

사용자가 편집기에서 일부 구문을 편집하여 프로그램이 실행되지 않도록하기 때문에 codemirror 편집기에서 강조 표시된 텍스트 구문을 비활성화해야합니다. 그렇다면 구문 내용을 편집에서 비활성화하는 방법은 무엇입니까? 예를 들어codemirror 편집기에서 강조 표시된 텍스트 구문을 비활성화하는 방법은 무엇입니까?

이에서
enter image description here

는 만 태그는 내용의 편집 나머지 부분은 편집 할 수 있어야 안된다.
어떻게해야합니까 ??

도움을 주시면 감사하겠습니다. 미리 감사드립니다.

답변

1
readOnly: boolean|string 
This disables editing of the editor content by the user. If the special value "nocursor" is given (instead of simply true), focusing of the editor is also disallowed. 

방문일 : 문서에 대한 http://codemirror.net/doc/manual.html

+0

나는 내용의 일부 – vidhya

+0

당신이 출력 scrren있어 추가 시겠어요 모든 텍스트가 –

+0

내가 질문 – vidhya

관련 문제