Workin' on it. Apparently running into syntax errors. I assume you know a little PHP - do you have any idea how to expand this to include all methods?
PHP:
if ($parent && !in_array($parent->tagName(), array('ol', 'ul')))
I tried to do this:
PHP:
if ($parent && !in_array($parent->tagName(), array('ol', 'ul', 'ol style="list-style-type: lower-alpha"', 'ol style="list-style-type: upper-alpha"', 'ol style="list-style-type: lower-roman", 'ol style="list-style-type: upper-roman")))
Unfortunately, that crashes the page load and prevents us from viewing topics. I imagine that it either doesn't like the spaces or the double quotes - I don't want to experiment while there are users online, though.
This isn't the only line that needs to be changed, but the solution to this will make the other changes obvious.
EDIT: Syntax highlighting pointed out a very obvious error on my part - I didn't close one of the single-quotes. It's what I get for not editing in VIM.
I need to make a run to town, then I'll try the improved script. Still, comments are invited.
MERGED
It's functional on the markup side. All the special lists currently appear as 1, 2, 3 &c., but a quick look at the page source will show that my changes worked.
Now, with a couple of CSS changes, the changes will become visible.
Edit: The problem isn't with the CSS. It's the closing tag x_x
Let me figure this out.
MERGED
This probably won't display correctly yet, as there are still some small issues to resolve. But, when it does, you will know it is ready.
- dolor
- sit
MERGED
Excuse me while I profusely bash my head in. The parser expects the inline CSS to appear both in the opening and closing tags, meaning that it breaks them when editing or replying. Still, I am making progress - all of the codes show up correctly in the WSIWYG editor. I just need to work my way around this problem...
Gah! 12:21! I'll ponder this while I'm at work tomorrow.