Ehsan Akhgari
42a9cf9745
Backout changeset be42bc18185a (bug 612128) because of bug 688423
2011-10-25 22:32:55 -04:00
Ehsan Akhgari
376668740e
Bug 612128 - Prevent the editor from modifying nodes which are not under an editing host; r=roc,bzbarsky
...
This patch ensures that the NODE_IS_EDITABLE flag is only set on nodes living
under an editing host. Things like text controls which used to have that flag
previously will not have it any more. The flag would be set on their anonymous
div node instead. Note that if text controls actually fall under an editing
host, they will get the NODE_IS_EDITABLE flag.
This patch also makes nsHTMLEditor::IsEditable return sane results (text nodes
are always considered to be editable).
2010-11-16 15:45:49 -05:00
Ehsan Akhgari
478ad1a412
Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
...
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu
0fe7772ece
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
2011-09-28 23:19:26 -07:00
Graeme McCutcheon
778a2b8cec
Bug 46555 - "Select All" should only be enabled when editor is non-empty. r=ehsan, gavin
2011-09-23 22:44:53 +01:00
Ehsan Akhgari
655e146ad3
Backout changeset a72195ce0eaa (bug 612128) becasue of Fennec regressions
2011-09-22 18:09:44 -04:00
Ehsan Akhgari
3aef5b99c4
Bug 612128 - Prevent the editor from modifying nodes which are not under an editing host; r=roc,bzbarsky
...
This patch ensures that the NODE_IS_EDITABLE flag is only set on nodes living
under an editing host. Things like text controls which used to have that flag
previously will not have it any more. The flag would be set on their anonymous
div node instead. Note that if text controls actually fall under an editing
host, they will get the NODE_IS_EDITABLE flag.
This patch also makes nsHTMLEditor::IsEditable return sane results (text nodes
are always considered to be editable).
2010-11-16 15:45:49 -05:00
Fabien Cazenave
b73d79c6d3
Bug 680060 - [queryCommandEnabled] check `GetIsSelectionEditable' results; r=ehsan
2011-08-18 11:34:52 -04:00
Fabien Cazenave
b6feda4bdf
Bug 676401 - The document.queryCommandEnabled API doesn't take the active editing host into account; r=ehsan
...
* adding an `isSelectionEditable' readonly attribute in <nsIEditor>;
* modified all ::IsCommandEnabled methods in editor/ to take it into account:
./libeditor/base/nsEditorCommands.cpp (15 commands)
nsUndoCommand 'undo'
nsRedoCommand 'redo'
nsClearUndoCommand 'clearUndo'
nsCutCommand 'cut'
nsCutOrDeleteCommand ?
nsCopyCommand 'copy'
nsCopyOrDeleteCommand ?
nsPasteCommand 'paste'
nsPasteTransferableCommand ?
nsSwitchTextDirectionCommand ?
nsDeleteCommand 'delete'
nsSelectAllCommand 'selectAll'
nsSelectionMoveCommands ?
nsInsertPlaintextCommand ?
nsPasteQuotationCommand ?
./composer/src/nsComposerCommands.cpp (15 commands)
nsBaseStateUpdatingCommand ?
nsPasteNoFormattingCommand ?
nsRemoveListCommand ?
nsIndentCommand 'indent'
nsOutdentCommand 'outdent'
nsMultiStateCommand ?
nsHighlightColorStateCommand 'hiliteColor'
nsAbsolutePositioningCommand ?
nsDecreaseZIndexCommand ?
nsIncreaseZIndexCommand ?
nsRemoveStylesCommand 'removeFormat'
nsIncreaseFontSizeCommand 'increaseFontSize'
nsDecreaseFontSizeCommand 'decreaseFontSize'
nsInsertHTMLCommand 'insertHTML'
nsInsertTagCommand ?
./composer/src/nsComposerDocumentCommands.cpp (3 commands)
nsSetDocumentOptionsCommand ?
nsSetDocumentStateCommand ?
nsDocumentStateCommand n/a (unpatched)
2011-08-17 13:28:03 -04:00
Ed Morley
5939100a93
Bug 655756 - Remove final XP_MAC remnants; r=josh
2011-05-10 20:24:48 +02:00
Boris Zbarsky
5a44005db5
Bug 575336 part 2. Make sure editor flushes layout before caret moves and scrolls that depend on layout information. r=roc,ehsan
2010-08-05 14:39:39 -04:00
Ehsan Akhgari
ebfec6da3d
Bug 572618 - Make debugging the editor easier - Part 4: multiline version of part 1; r=roc
2010-06-17 16:44:35 -04:00
Ehsan Akhgari
ea32707944
Bug 572618 - Make debugging the editor easier - Part 3: multiline version of part 2; r=roc
2010-06-17 16:40:48 -04:00
Ehsan Akhgari
f32700d4f7
Bug 572618 - Make debugging the editor easier - Part 2: Replace all if(!foo) return NS_ERROR_bar checks with NS_ENSURE_TRUE(foo, NS_ERROR_bar); r=roc
2010-06-17 15:41:16 -04:00
Tom Dyas
5d4dbbefac
Support receiving data from Mac OS X services into text and HTML editors. b=525389 r=josh r/sr=smaug
2010-01-10 20:45:45 -05:00
Josh Aas
450434347b
Backed out changeset bee6729280d8
2009-12-30 17:29:26 -05:00
Tom Dyas
87caa70f37
Support receiving data from Mac OS X services into text and HTML editors. b=525389 r=josh r/sr=smaug
2009-12-30 15:58:33 -05:00
[email protected]
ad0a590b86
Bug 279416 - Implement a controller for cmd_switchTextDirection. r=brade sr=neil (for editor/) r=smontagu sr=neil (for xpfe/) r=mconnor (for browser/)
2005-01-26 01:40:30 +00:00
[email protected]
c0cd46fc51
Bug 236613: change to MPL/LGPL/GPL tri-license.
2004-04-18 14:21:17 +00:00
[email protected]
41594cdca3
Bug 221719 Disable Composer's Paste As Quotation menuitem in the subject and address fields r=brade sr=alecf
2003-10-10 19:02:28 +00:00
[email protected]
4fb286d491
call GetIsDocumentEditable which will check CanModify for us; r=jfrancis, sr=blizzard, bug=209548
2003-07-18 14:06:21 +00:00
[email protected]
77d41631b3
code cleanup, r=timeless, sr=kin, bug=209548
2003-06-30 14:56:22 +00:00
[email protected]
3e722bb4d3
cmd_clearUndo implementation; r/sr=smfr a=sspitzer bug 195506
2003-05-09 18:21:00 +00:00
[email protected]
cf60916c5f
Fix bug 196704: implement commands to get the selected text, and insert text, to allow for embedders (like Camino) to use them, e.g. for the Mac OS X services menu. Also fix image copy. r=brade, sr=kin.
2003-04-22 18:11:12 +00:00
[email protected]
72b7ef89fc
Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
2003-01-08 19:35:36 +00:00
[email protected]
a03eeab461
162083: fix ctrl-delete to delete by words, not to end of line. r=brade sr=bzbarsky
2002-11-26 23:01:12 +00:00
[email protected]
08d3633884
Command Controller refactoring and cleanup, mostly by mjudge with help by cmanske, b=170353, r=brade, sr=sfraser. EditingSession cleanup and new commands in \editor, b=174439, r=mjudge, sr=sfraser
2002-11-12 23:30:29 +00:00
[email protected]
4e4830ddcd
api changes (bug 157097, r=cmanske, sr=sfraser)
2002-09-12 19:09:19 +00:00
[email protected]
46ce738546
166917. Clean up xpcom SDK includes. [email protected] , [email protected] , [email protected]
2002-09-07 17:13:19 +00:00
[email protected]
835013d291
r=akkana sr=sfrasier 125146 a=asa This patch will make the embedding API's a better friend to all. It eliminates the use of multibyte strings in command names and also allows for simple command to not require the nsICommandParams interface to be filled.
2002-07-15 22:04:13 +00:00
[email protected]
c32e8a18a4
Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa
2002-03-23 22:16:54 +00:00
[email protected]
b6e73974da
fix to use NS_LITERAL_STRING; bug 26384 r=cmanske sr=kin
2002-02-19 22:14:57 +00:00
[email protected]
1835c5373d
HPUX bustage
2002-02-02 14:30:00 +00:00
[email protected]
59cc5aac6b
115922 embedding work. no changes should be observed in current product this will only affect the embedded effort. This moves the command handler stuff from content xul to embedding/components/commandhandler. a=judd r=saari built on mac/windows/gmake with this we will be able to finish removing editorshell from the app and have a true embedded editor.akkana will pick this up after me and finish the embedding work.
2002-02-02 05:13:56 +00:00
[email protected]
040fdf5d4d
NS_LITERAL_STRING cleanup (bug 26384; r=akk, sr=kin)
2001-12-07 15:17:29 +00:00
[email protected]
4dd7506441
bug 103443 - remove the return rv?rv: NS_ERROR_FAILURE pattern from the editor files.
...
the editor/base remain untouched r=cmanske sr=kin
2001-10-17 14:33:50 +00:00
[email protected]
fb3016ac45
Make ctrl-delete delete to end of line on Unix when no text is
...
selected. Bug 102448, r=akkana, sr=kin
2001-10-02 00:01:26 +00:00
[email protected]
598067cb73
License changes, take 2. Bug 98089. mozilla/editor/.
2001-09-25 22:53:13 +00:00
[email protected]
30a09f1d88
Oops.
2001-09-20 00:02:59 +00:00
[email protected]
3c364a083d
bug #98089 : ripped new license
2001-09-19 20:09:47 +00:00
[email protected]
4c647ea08a
Replace uses of deprecated NS_IMPL_ISUPPORTS and NS_IMPL_QUERYINTERFACE macros with NS_IMPL_{ISUPPORTS,QUERYINTERFACE}{1,0}. r=jag rs=brendan b=45797
2001-08-21 01:48:11 +00:00
[email protected]
a9aa77073f
Header include dependency cleanup. b=64023 r=jag rs=brendan
2001-07-16 02:40:48 +00:00
[email protected]
093dc8c507
66318 r= kin, sr=kin tested by ducarozz ,phil chofmann approved..changing APIS to be idl so we can use in embedding land... lots of string changes too to nsAStrings
2001-04-07 00:45:26 +00:00
[email protected]
4e571eed51
Fix for 74143, change nsIController to use DOMStrings. sr=hyatt, r=kin
2001-04-04 23:48:03 +00:00
[email protected]
e717c0a955
fix copy/paste error in code logic (2 cmd_scrollPage* and no cmd_movePage*); r=akkana, sr=kin
2001-02-26 15:37:25 +00:00
[email protected]
b0e5f07191
25779: Add/improve alternate windows cut/copy/paste key bindings: r=brade sr=sfraser.
...
68747: Remove redundant code in nsHTMLEditor. sr=sfraser.
2001-02-15 21:51:25 +00:00
[email protected]
9bc9a56a09
Big command tidyup. Make the distinction between editor and composer command clearer, and remove vestiges of the old singleton composer command manager. Also tidy up command node state attribute code.
2000-05-05 23:20:21 +00:00
[email protected]
9dd43fe725
Fixes for bugs 34503 and 34504 -- split the editor controller into editor and composer controllers, and make commands for lots of editor functions.
2000-05-01 21:49:52 +00:00
[email protected]
2e85db0702
ender lite checkin.
2000-04-27 07:37:12 +00:00
[email protected]
ff5d498e92
making string conversions explicit
2000-04-18 07:44:58 +00:00