Feodor2 / Mypal

135 stars 12 forks source link

Can't edit with Wordpress. #6

Open kaiiisen opened 3 years ago

kaiiisen commented 3 years ago

Hi, since 29.2.0 it seems I can't edit my Wordpress posts anymore.

It only exhibits a blank page.

Wonder if you can take a look on that, please.

Also, just a little something else, you can't access GitHub join page properly with MyPal either(had to join using my phone).

Thank you for all your work.

Feodor2 commented 3 years ago

i can look into wordpress upon next week

Feodor2 commented 3 years ago

I have reached my wordpress at last. I had old worpress where editor works fine, it suggested to update and i did and got blank page too, sure update broke the edit thing.

I poked it and could fix. in the wp-includes\js\dist there are file editor.min.js to poke. It is obfuscated nothing to do with it, fortunately there is non obfuscated version editor.js. First copy it upon obfuscated version, then edit it. Search for function cleanForSlug(string) { below look the string long string return Object(externallodash["trim"])(Object(externallodash["deburr"])(string)... replace the whole string with

return Object(external_this_lodash_["toLower"])(Object(external_this_lodash_["deburr"])(Object(external_this_lodash_["trim"])(string.replace(/[\s\./_]+/g, '-'), '-')));

Save the file. Next do not hurry to update.