0

I used the codemirror for my textarea. Strangely enough, the text starts behind the sidebar and you can't work with it. Is there a specific setting for this? In the CSS code I couldn't see anything conspicuous...

add_action('admin_enqueue_scripts','load_admin_scripts');
function load_admin_scripts(){
$cm_settings['codeEditor'] = wp_enqueue_code_editor(array('type' => 'text/css'));
    wp_localize_script('jquery', 'cm_settings', $cm_settings);

    wp_enqueue_script('wp-theme-plugin-editor');
    wp_enqueue_style('wp-codemirror');
};

JS:

jQuery(document).ready(function ($) {
//Load Code-Mirror
wp.codeEditor.initialize($('#fancy-textarea'), cm_settings);
});

Codemirror Error Text starts behind Area

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.