سيكون رائعًا لو تمكنا من تعطيل مربع محرر Ace باستخدام السمة المعطلة ، على غرار ما هو متاح في منطقة النص:
<textarea rows="3" cols="25" disabled="disabled">
This textarea is grayed out and disabled for interaction.
</textarea>
أقرب شيء لدينا بالفعل في Ace هو خاصية "readonly" (editor.setReadonly (true))
شكرًا ، هذا سيفي بالغرض.
لمعلوماتك إنه editor.setReadOnly (true)
Ace
؟editor.setReadOnly(true);
https://stackoverflow.com/questions/24757506/how-to-disable-in-ace-editor-the-selection
لا تعمل لهذه الحالة؟
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contenteditable
لا يمكنني wirte ولكن يمكنني حذف النص بعد استخدام setReadOnly (صواب).
التعليق الأكثر فائدة
لمعلوماتك إنه editor.setReadOnly (true)