Closed Bug 244753 Opened 21 years ago Closed 21 years ago

Support STATE_READONLY / STATE_EDITABLE for editors

Categories

(Core :: Disability Access APIs, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: aaronlev, Assigned: aaronlev)

Details

(Keywords: access)

Attachments

(1 file)

Any HTML window can turn into an editor window at any time. The nsDocAccessible/ROLE_EDITOR object should support STATE_READONLY (or ATK_STATE_EDITABLE under Linux). State change events should also be fired.
Attachment #149346 - Flags: superreview?(Henry.Jia)
Attachment #149346 - Flags: review?(kyle.yuan)
Comment on attachment 149346 [details] [diff] [review] Support readonly/editable. Sun - please let me know if ATK parts are wrong or unnecessary. over to Louie.
Attachment #149346 - Flags: review?(kyle.yuan) → review?(Louie.Zhao)
Aron, can you explain more detailed on how to turn a HTML window into an editor window in mozilla (do you mean composing)? Although the patch looks good to me, how can I find a way to trigger a HTML window to change state?
Comment on attachment 149346 [details] [diff] [review] Support readonly/editable. Sun - please let me know if ATK parts are wrong or unnecessary. Kyle, can you r= this after all? Louie says he's gone for the next week. Here's a demo of setting design mode for the document. It could happen later in the life of the document. http://www.mozilla.org/editor/midasdemo/
Attachment #149346 - Flags: review?(Louie.Zhao) → review?(kyle.yuan)
More specifically <iframe id="edit" width="100%" height="200px"></iframe> JS to turn on editing for iframe: document.getElementById('edit').contentWindow.document.designMode = "on";
Comment on attachment 149346 [details] [diff] [review] Support readonly/editable. Sun - please let me know if ATK parts are wrong or unnecessary. looks good to me. r=kyle. BTW, Henry is also not in office in rest of this week.
Attachment #149346 - Flags: review?(kyle.yuan) → review+
Comment on attachment 149346 [details] [diff] [review] Support readonly/editable. Sun - please let me know if ATK parts are wrong or unnecessary. I just realized I'll have to update the comment as well (so that it doesn't refer to STATE_MARQUEED anymore).
Attachment #149346 - Flags: superreview?(Henry.Jia) → superreview?(jst)
Comment on attachment 149346 [details] [diff] [review] Support readonly/editable. Sun - please let me know if ATK parts are wrong or unnecessary. sr=jst
Attachment #149346 - Flags: superreview?(jst) → superreview+
Checking in src/base/nsDocAccessible.cpp; /cvsroot/mozilla/accessible/src/base/nsDocAccessible.cpp,v <-- nsDocAccessible.cpp new revision: 1.40; previous revision: 1.39 done Checking in src/atk/nsDocAccessibleWrap.cpp; /cvsroot/mozilla/accessible/src/atk/nsDocAccessibleWrap.cpp,v <-- nsDocAccessibleWrap.cpp new revision: 1.13; previous revision: 1.12 done
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: