IMHO the editor shouldn't let you create invalid HTML - I just typed a list.. selected the ul list button and then highlighted the nested items and indented them. How are you doing it... provide your steps and I'll recreate it here.
Hi Steve,
so my process was to create one long list of 7 items. Then highlight two of those items and use the RTE indent button to make the nested list. The code generated is:
Nested lists are not accessible
Hi, when nesting lists using the indent button the generated code is:
However the nested list should be within the line item it follows, rather than following as a separate list.
Is there a way to get the editor to nest lists accessibly? Thanks, Matt
Hi Matt,
What are you trying to do?
Is it code from RTE ?
Thanks,
Alex
Hi Alex, Yes that is code generated by the RTE.
I'm trying to generate accessible code for a nested list in umbraco without having to manually edit the html. It should be:
but the code in the first comment shows what is generated. This is not accessible as a
<ul>
cannot follow a<ul>
tag.does that make sense? Thanks, Matt
Hi Matt,
You are right of course.
This is functionality of RTE.
Hi, so should this be logged somehow to be an improvement of future versions?
I guess there is no way to fix this in the RTE for V6.2.6?
Thanks, Matt
Hi Matt,
What version of Umbraco and browser are you using?
I've just tried to recreate this and in both v6.2.6 and the latest v7 it outputs something like:
Hi Thanks Steve.
I'm using V626 and Chrome.
How did you create the nested list? did you use the indent button?
It could be that we are just doing it incorrectly in the editor?
Thanks, Matt
Hi,
IMHO the editor shouldn't let you create invalid HTML - I just typed a list.. selected the ul list button and then highlighted the nested items and indented them. How are you doing it... provide your steps and I'll recreate it here.
Sounds weird.
Steve
Hi Steve, so my process was to create one long list of 7 items. Then highlight two of those items and use the RTE indent button to make the nested list. The code generated is:
I also didnt think it would create invalid code. any thoughts welcome :-)
Thanks, Matt
What browser are you using? Are you on Windows 10?
I can't recreate this so there is something on your local environment or a config setting that's doing something different to mine.
Try comparing /config/tinyMceConfig.config to the one in a standard download and see if there are any differences?
Steve
Hi Steve, Sorry I missed this reply. I use chrome and we are on windows 7 here at work.
I will try those things - good to know yours creates accessible code out the box at least.
Thanks, Matt
is working on a reply...