का मूल्य कैसे प्राप्त करें मैं टेक्स्टरेरा के लिए कोडमेयरर प्लगइन का उपयोग कर रहा हूं लेकिन मैं टेक्स्टरेरा के मूल्य को पुनः प्राप्त करने में सक्षम नहीं हूं।कोडिमिरर टेक्स्टरेरा
कोड:
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
lineNumbers: true,
matchBrackets: true,
mode: "text/x-csrc"
});
function showCode()
{
var text = editor.mirror.getCode();
alert(text);
}
यह त्रुटि दिखा रहा है:
editor.getCode() is not a function.
क्रोम में 'console.dir (editor.morror) 'और' console.dir (editor)' शो क्या करता है? – sissonb