• Resolved magestyx

    (@magestyx)


    This is a fantastic plugin and we use it on every site. Just remember that some other plugins, loops, etc. will sometimes not use the PHP code added through this plugin, in which case the only alternative is to move it into functions.php .

    Our only problem with this plugin – please, please can you tell us how to disable the auto-close quotes? This messes us up CONSTANTLY. Every time we type a quote, almost always wanting only a single quote, it requires multiple ‘clean up’ keys to delete the extra and get the cursor back where we wanted.

    Thanks,

    Magestyx

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter magestyx

    (@magestyx)

    Ok, found it –
    /wp-content/plugins/custom-codes/assets/script/codemirror/addon/edit/closebrackets.js
    Edit the ‘pairs’ and ‘closeBefore’ vars line 13 & 14 to:
    pairs: “()[]{}”,
    closeBefore: “)]}:;>”,

    Basically you’re just removing anything in the pairs to do with single and double quotes.

    HUGE nuisance solved.
    It’d be great to have this as a config setting so we don’t have to edit this each time there’s a plugin update.

    Cheers,

    Magestyx

    • This reply was modified 2 years ago by magestyx.
    Plugin Author Bilal TAS

    (@bilaltas)

    Hi @magestyx, thanks for the feedback and investigation you did.

    The issue you mentioned about PHP functions on CodeKit, it looks like related to the order of releasing the codes. That’s why, I only recommend adding actions from the plugin, or use the functions you wrote on just another PHP Code on CodeKit. You can use “Includes” feature for this.

    About the bracket/quote issue, it’s not best practice to update codes on 3rd parties(CodeMirror in this case) files. But if it helps, I can create an editor option which you can completely disable the “Auto Close Brackets” feature. Does that work for you?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Must-have plugin on every site’ is closed to new replies.