You are not logged in.
Pages: 1
Thanks James. For the benefit of other people, the same problem occurs with Firefox using <b> and IE using <strong>.
I'm using a nightly release of xinha downloaded on 11 January 2006
I'm finding that if I italicise text in a xinha text area using IE 6.0 it produces code with <em> tags in, whereas Firefox 1.0.7 produces code with <i> tags in.
This probably wouldn't matter too much, except that my application is a tool to allow users to edit contents of a database, and it compares database contents with form contents to see if the user has changed anything without saving. Unfortunately if one person edits a record using IE, and then someone else loads the same record later using Firefox, xinha in Firefox changes the <em> tags to <i> tags in my text areas, and so warns the user that they've changed the data.
I can work-around this on the server when doing the comparison, but I was just puzzled as to why xinha running in the two browsers is working so differently.
Thanks,
Marrtin
Thanks Niko, that's got it working nicely.
I'm using xinha nightly release downloaded today (30 March).
I want to make an x-area where I've locked down the formatting (i.e. the user cannot change the text font, size or style - I just want them to be able to bold, hyperlink and similar things).
I've used
xinha_config.toolbar =
[
["bold","italic","separator"],
["insertorderedlist","insertunorderedlist","outdent","indent","separator"],
["inserthorizontalrule","createlink"],
["undo","redo"], (HTMLArea.is_gecko ? [] : ["cut","copy","paste"]),["separator"],
["killword","removeformat","separator","htmlmode","about"]
];in the <HEAD> tag of my web page, and that works correctly to give me what I want.
So now I would like to change the default display font and size of my x-area. I've tried
xinha_config.pageStyle = 'font-family: verdana,sans-serif; font-size: 11px;';based on experience with htmlArea2, but it isn't working.
Any suggestions please?
Pages: 1