Re: PmSyntax and editing buttons
"Jake D. Parsons" <[email protected]>
| Newsgroups | gmane.comp.web.wiki.pmwiki.user |
|---|---|
| Message-ID | <[email protected]> |
On Monday, 15 May 2023 03:35:52 PDT Johan Bengtsson wrote: > Maybe I have to correct myself, I'm not sure anymore that symlinks are the > problem. > > $FarmPubDirUrl = 'https://wiki.xyz.xyz.se/Farm-2.3.23/pub'; # works > $FarmPubDirUrl = 'https://wiki.xyz.xyz.se/Farm/pub'; # works in firefox, > works in chromium private window, does not work in chromium regular window, > so some problem with caching? > > <sigh> > > -Johan Bengtsson > > > ________________________________________ > From: Petko Yotov <[email protected]> > Sent: Monday, May 15, 2023 11:22 > To: Johan Bengtsson > Cc: Pmwiki Users > Subject: Re: [pmwiki-users] PmSyntax and editing buttons > > I assume $EnableGUIButtons = 1; is set in config.php, and $PubDirUrl / > $FarmPubDirUrl are correctly configured. > > Any errors in the browser console? (Press the F12 key, reload the page, > and look for failed requests and for JavaScript errors.) > > Is this a public wiki I can review? You can send the details to me > privately. > > Petko > > -- > If you upgrade : https://www.pmwiki.org/Upgrades > > On 15/05/2023 11:12, Johan Bengtsson wrote: > > I had pmwiki 2.3.16 installed. I upgraded to 2.3.23 to see if that > > would help. It didn't, now GUI-buttons are not visible. > > > > But I noticed that I had replaced guiedit.js and guiedit.php before, > > probably when upgrading to 2.3.16. > > I guess I was replacing them with older versions. > > > > Right now the 2.3.23 versions are in place, and no GUI-buttons. > > > > -Johan Bengtsson > > > > ________________________________________ > > From: Petko Yotov <[email protected]> > > Sent: Monday, May 15, 2023 10:36 > > To: Johan Bengtsson > > Cc: PmWiki Users > > Subject: Re: [pmwiki-users] PmSyntax and editing buttons > > > > Are all core files updated? > > > > Especially scripts/guiedit.php and pub/guiedit/*.js ? > > > > Petko > > > > -- > > If you upgrade : https://www.pmwiki.org/Upgrades > > > > On 15/05/2023 10:26, Johan Bengtsson wrote: > >> It is just standard buttons, no custom stuff. It works like it should > >> for me in the pmwiki.org sandbox. > >> > >> I tried disabling a lot of the recipes for the wiki, but that did not > >> help. > >> > >> -Johan Bengtsson > >> > >> ________________________________________ > >> From: Petko Yotov <[email protected]> > >> Sent: Friday, May 12, 2023 16:50 > >> To: Johan Bengtsson > >> Cc: PmWiki Users > >> Subject: Re: [pmwiki-users] PmSyntax and editing buttons > >> > >> If you are using the standard $GUIButtons as shown in the > >> documentation, > >> or calling the core functions to insert text, that is insertText(), > >> then > >> > >> it "should" work. Try it on the WikiSandbox: > >> https://www.pmwiki.org/wiki/Main/WikiSandbox?action=edit > >> > >> If it doesn't work for some reason, it may be a bug or an omission and > >> I'd be interested in tracking it and fixing it. > >> > >> Now, if you have custom functions that insert code by directly > >> manipulating the text.value property, after doing that you also need > >> to > >> > >> trigger one "input" event: > >> var evt = new Event('input'); > >> document.getElementById('text').dispatchEvent(evt); > >> > >> Unlike other DOM elements, changes in textarea value cannot be > >> detected > >> by a MutationObserver. The only other option I know and even used at > >> some point, is to check the value every 50-100 milliseconds. This uses > >> up a lot of CPU and battery, so I removed it. > >> > >> Petko > >> > >> On 12/05/2023 15:54, Johan Bengtsson wrote: > >>> I noticed this when having syntax highlighting enabled for the edit > >>> area: When inserting code via the edit buttons, I must press return > >>> for the code to be visible. > >>> > >>> This is surely a bug? > >> > >> _______________________________________________ > >> pmwiki-users mailing list > >> [email protected] > >> http://www.pmichaud.com/mailman/listinfo/pmwiki-users > > > > _______________________________________________ > > pmwiki-users mailing list > > [email protected] > > http://www.pmichaud.com/mailman/listinfo/pmwiki-users > > _______________________________________________ > pmwiki-users mailing list > [email protected] > http://www.pmichaud.com/mailman/listinfo/pmwiki-users Did you try disabling: # $EnableIMSCaching = 1; # allow browser caching Not sure it is even useful with newer browsers but do not quote me on it... _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEjdAZFDRF2+MfZ+qKJCYM8ZyNVboFAmRmdmIACgkQJCYM8ZyN Vbq3PhAAx4RonmHo2jp6QZsftzWoXG+Nc2BECsmBDWEXqWtyTkSXNlW7gzKT6hlz dt7+2R/5QPSicxbGC4z/XRwiQHNo/peLXzVF9Jo1SD89WFjPF5xL6Y9ABebj5HK8 fJDIWE/oD26riCneFXquPRbpy42Vljv9fbjsw6HFoUz56fef6eoc4fAoLORiNoo3 hNySL1Nwes9X/FQg96GU0af/+CSi43hq18qiSOzLGaOW8T5tQvN+kHTqCZNKRTqn 9XMLwytZiJIAqa5fiofjs/n5mScenIKOovm8AYeKjkyFsKos8K9YUSFaPFDLFuTO 3CC64xfanULj1thCAG2kyuSRB2ZrdKi+Ysg6hQ2m/3vteyb9UB85l9zFBWh29X+Y hQhm7e75u5wwITGbB5s3E4+ABC/Rc4L3UzwEHVnB9BEJ7hF5Q6lse3K1obp0+aOk OpnaItJv9IFGxQ0gSFMibHth4QNVt9u4nE/JBZJod/8gN9FF4el65muAHtFLEnyu cjYbtSACQKvJfdse+AMEIcmeFnru9zU+ni5TaJfbWdOWMm7rNbazQrWUc+/Q41Hm /3ppAqpZuoifVgePUkHzc72hlgtXQAqtkjTkxigc9X7WIj7fuzfGZA6VakMQ/imt DFO7mB69UMdL/yJVmFQt5P7aVC+BQCdrBUQRaewpTZxm3bQTMog= =Dx8F -----END PGP SIGNATURE-----