Intruiguing.
I think my main frustration comes with the way IE and Firefox operate differntly -- Firefox is happy to take a list of BR-seperated lines and turn them into a list, while IE will only do that with a P-seperated list. However, I thought you would have taken that into consideration because you have seperate JS scripts for different browsers.
I thought you might be doing it with regex: take the selected block of code and for each line (checking up to optional br, p or carriage return) wrapping it in an LI, and then wrapping the whole lot in a UL.
The thing with the block-formatting, well, again frustration because you show that you *can* do it. Case in point: if I highlight some text and click the bold button, just the highlighted text becomes bold. If I select a style, just the highlighted text is wrapped in a span/style. So why can't the highlighted text be wrapped in (in my sepecific example) H1 tags instead of the whole paragraph?
Regarding the XHTML above, I have found that I can't use the XHTML ouput option because the code
<a href="#" onclick="alert('test');">click to test</a>
gets transformed into :
<a href="#" onclick="function onclick(event) {
function onclick(event) {
alert("test");
}
}">click to test</a>
and when the page is saved again becomes :
<a href="#" onclick="function onclick(event) {
function onclick(event) {
function onclick(event) {
function onclick(event) {
alert("test");
}
}
}
}">click to test</a>
maybe it's a bug? but it's annoying enough that I have to turn off the XHTMLOutput option and do a lot of post-processing:
1) ensuring all <li> elements are closed when using IE
2) ensuring all <br> and <hr> tags are closed
3) change <div align=...> to <div style="text-align: ...;">
4) changing h/vspace attributes on images to style="margin: apx bpx;"
5) remove any reference to the host server as having both UseRelativeLinks AND RemoveServerNamesFromUrl doesn't seem to do it.
I'm just a bit frustrated as I wasn't expecting to have to learn meself some regex to use a content editor. And despite what might look like a lot of moaning, I use Cute becuse it's still hands-down the most flexible editor I've come across. It just seems to need a bit of polishing?
And a last question: in the example you pointed me to above, the ouput HTML in the bottom window is nicley spaced out and easy to read. Why does the code in the Editor's HTML view not look as nice (is REALLY hard to go through a lot of code!)
Thanks for your time on these issues, Adam!