bernhard Posted January 3, 2018 Posted January 3, 2018 hi @owzim i want to include your module in my kickstart module and found this issue on the uikit admin theme (full width font size input), would be great to get a fix for it thanks
bernhard Posted January 3, 2018 Posted January 3, 2018 hi @owzim me again with a more important request i opened a PR on github to trigger an "loaded" event after acefy() is done. would be great to include this in your module, thanks 2
owzim Posted January 6, 2018 Author Posted January 6, 2018 On 1/3/2018 at 3:30 PM, bernhard said: hi @owzim i want to include your module in my kickstart module and found this issue on the uikit admin theme (full width font size input), would be great to get a fix for it thanks Hi, unfortunately I currently have little resources for that. You are welcome to open a PR though.
netcarver Posted January 6, 2018 Posted January 6, 2018 @owzim Great to hear from you in the forums again. I think Bernhard already opened a PR for you. 1
bernhard Posted January 7, 2018 Posted January 7, 2018 21 hours ago, netcarver said: I think Bernhard already opened a PR for you. nope, this was a pr for another thing and is already merged 1
Autofahrn Posted December 16, 2023 Posted December 16, 2023 Just in case I am not the only one trying to use this great (thanks @owzim!) module inside a repeater with dynamic (AJAX) load of items, it indeed works using the "current" (Oct 2017) dev version along with a tiny fix in ace-extended.js: The issue is, that acefy is invoked multiple times for the same inputfield, which finally seems to trash the JS engine. Just add two lines of code right before $textarea.each (in acefy): : //Fix: Avoid duplicate and recursive invocation of acefy if($textarea.hasClass(ACE_INITIALIZED_CLASS)) return; $textarea.addClass(ACE_INITIALIZED_CLASS); // Mark wrapper as initialized //FixEnd $textarea.each(function() { : and add an appropriate initialization for ACE_INITIALIZED_CLASS at the head of the module: ACE_INITIALIZED_CLASS = 'AceInitialized' 1
pmichaelis Posted April 10, 2025 Posted April 10, 2025 Hey, there is a deprecation notice when running php 8.3 🥸 Deprecated: Calling get_class() without arguments is deprecated in .../cache/FileCompiler/site/modules/InputfieldAceExtended/InputfieldAceExtended.module on line 499 The error "Deprecated: Calling get_class() without arguments is deprecated" occurs when using PHP 8.3 or later to call the get_class() function without providing an argument. This is because the function's arguments are now required. Call get_called_class(), which works similarly to get_class() but doesn't require arguments. public static function getStatic($name) { $class = get_called_class(); return isset($class::$$name) ? $class::$$name : array(); } 2
Macrura Posted April 10, 2025 Posted April 10, 2025 @pmichaelis thanks for the report. ok let me see if i can make this change and commit soon, might take a couple of days. 2
DrQuincy Posted March 5 Posted March 5 (edited) Any update on this please? 🙂 It seems to be the only module that's giving me warnings on 8.3+. I think just changing line 499 to this would do the trick: $class = static::class; Thanks for this module, I use it all the time. Edited March 5 by DrQuincy
Macrura Posted March 5 Posted March 5 I have forked it and updated it. https://github.com/outflux3/pw-inputfield-ace-extended I will put in a request to change the Github repo for the module to the newly forked version. Note that this inputfield is not compatible with the new ProcessWire UiKit admin theme, so you should be using the original theme when using Ace code editor. 1
Macrura Posted March 5 Posted March 5 Edit - i just checked the modules directory and the repo still points to owzim, but it lists @horst as the owner. I'll continue to pursue the matter and see if we can get this module back in action.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now