0

A client asked if the tables in his Wordpress editor could be sorted alphabetically automatically. He asks because the tables are quite long and it would be easier for him to edit them this way. (I tried to explain what ctrl+f is for but to no avail).

To be clear, I mean a table in the editor like this (dummy content): https://ibb.co/XYPr4XT

What I tried so far: I installed a plugin that allows the execution of javascript on admin pages on load. Then I tried to implement the following script, but to no avail: https://pastebin.com/AcvpdkBe

But maybe I'm approaching the issue from the wrong angle though or maybe it isn't possible at all, so any pointers on how this could be done are very welcome!

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.