itmaybejj / editoria11y-wp

WordPress wrapper for Editoria11y
GNU General Public License v2.0
6 stars 2 forks source link

Support for WordPress Classic Editor #25

Open beckej13820 opened 4 months ago

beckej13820 commented 4 months ago

Hello,

My institution runs a WordPress Multisite that is running the Pressbooks suite of plugins. These plugins transform a wordpress multisite into a book authoring platform, where each subsite is a book and you are able to export PDFs and EPUBs of the printed materials.

Pressbooks uses the Classic Editor only, with no support for Gutenberg. I was curious if the classic editor could be supported by the Editoria11y plugin.

I have installed Editoria11y on my Pressbooks network, and I have some of the same issues that most multisites have that have been reported elsewhere, that books where I activated the plugin works fine, but if I network activate, some tables are not made and the reports portion of the plugin doesn't work.

Editoria11y is marking accessibility errors for logged in viewers when previewing a page or looking at the site, but if there was support for the classic editor, they would see those in-line.

Is support for the Classic Editor possible?

itmaybejj commented 4 months ago

Rewriting the multisite support is up next for me, project wise. I'm rather embarrassed it's still not working right.

As for the classic editor -- honestly; Princeton is very generous with funding this project, but I try to only ask for allotments for features we would use here. Which is to say: I would be very, very happy to provide help and support to anybody that wanted to take a whack at it, but I don't see me doing it myself.

That said -- this is me thinking about the existing live checker, which was hard-coded as a hacky layer on top of the block editor. That was very much the first iteration. I'm hoping to rewrite it this summer/fall to look a lot more like spellcheck, and to have that rewrite be platform independent -- I want it to work in both Gutenberg and CKEditor. It's...a bit of a long shot, but if it works, it should become possible to inject that code into the TinyMCE iframe pretty much unmodified, assuming WordPress allows messing with the contents of that iframe without majorly messing with core functionality.

itmaybejj commented 4 months ago

Actually -- the last release should have (maybe) fixed the multisite activation bug.

But it will not have provisioned the tables for sites that had been set up previously. I'll get that out shortly -- and that will include a lazy provisioner for the tables, so even if network creation of tables fails, the individual sites should provision their own tables the first time they run.

itmaybejj commented 3 months ago

Hello again.

I have a working prototype of a true live-editing overlay and would love some feedback.

Once this lands, all that would be needed to get it working in the classic editor would be an injection of the JS into the TinyMCE iframe.

beckej13820 commented 3 months ago

I just saw this message. I will try to install that branch on a site and play with it a little.

itmaybejj commented 3 months ago

Oh there's no WP integration yet -- I'm doing the library work first. I'll be in touch when there's something turnkey that is testable!

In the meantime -- this is the library demo: https://editoria11y.princeton.edu/next/