Context: This feature is available in many popular code editors (e.g., VS Code, Sublime Text, Atom) and would significantly improve the workflow within ASE Custom Admin and Custom Frontend CSS for both admins and developers.
]]>How can I use CodeMirror in Markup?
I tested in WordPress Playground, just installed both plugins: [Link](https://playground.wordpress.net/scope:generous-vintage-school/2024/12/06/test-codemirror/)
———————————————
This is the content of my Test:
Image of Code: https://ibb.co/hs2SY1r
Image of Output: https://ibb.co/LtjdxFD
———————————————
Alternativly: Can I use any other plugin to make my code more beautiful? (How?)
]]>required
.
How to achieve that? Regular way with 'attributes' => ['required']
seems not work since it makes hidden textarea
required only. And this completely blocks the ability to create new posts because the user cannot fill the hidden textarea.
Is it possible for user to add them, if so do you have a How to guide” ?
]]>To replicate, please open a Custom CSS or Custom Javascript window, make an edit, then try to press the publish button at the bottom.
You will see that the top of the button is not clickable, as the section above is overlapping.
This may be a negative margin issue or something.
I would love to be able to have my block have 10 visible spaces, and when the user wants more than that, the block creates a scrollbar rather than extending the height of the block continuously.
Keep doing what you’re doing – this is an amazing plugin
Using Filester File Manager Pro Version 1.7.3 by Ninja Team with WordPress Version 5.8.1
]]>How could I use CodeMirror in the Unyson editor? It’s possible?
]]>We discovered an issue with Advanced File Manager when using codemirror.
Advanced File Manager enqueues the codemirror everywhere in the WordPress Admin, not only on the admin-pages that Advanced File Manager creates.
That potentially conflicts with other plugins using Codemirror on their particular admin-pages.
This happens in \file-manager-advanced\application\class_fma_main.php
:
wp_enqueue_script( 'codemirror', plugins_url('library/codemirror/lib/codemirror.js', __FILE__ ));
Later this can result in conflicts that show as errors as below:
Uncaught TypeError: CodeMirror.overlayMode is not a function
, or Uncaught TypeError: Cannot read property 'hasClass' of undefined
.
What we suggest is to first register the scripts and then only enqueue them where the Advanced File Manager Plugin needs them.
Currently users affected by such conflicts can deregister the script in the “conflict” pages of other software (which also load Codemirror) but that is the wrong solution and just a workaround.
If you are interested in how to replicate this, please contact us thru the email composed of beda.s
and @onthegosystems.com
(Unfortunately I could not find your direct contact in the Plugins File header…)
I can provide particular steps and even a copy of an affected site.
Thanks a lot!
]]>