Commit Graph
147 Commits
Author SHA1 Message Date
cmanske@netscape.com 564312b2b3 Fixed insert element bugs. Added message if no misspelled words. Changed 'More Atrributes' to 'Advanced Edit' in dialogs. Improved generic message dialog. Added remove link button to link dialog 1999-07-24 20:27:53 +00:00
cmanske@netscape.com 519eecb707 Fixed bugs relating to insert element 1999-07-23 00:52:17 +00:00
sfraser@netscape.com 79b0c344d1 Turn on selection for all documents that are being edited. This enables selection in GFX ender widgets. 1999-07-23 00:11:00 +00:00
sfraser@netscape.com 81848c9919 #ifdef out loading the string bundle, because it causes onEndDocumentLoad handlers to fire, which is very bad. 1999-07-22 23:52:08 +00:00
tague@netscape.com ad0bcb3d2e Fixed bug #10242 - crash when typing space after IME composition 1999-07-22 23:13:59 +00:00
tao@netscape.com a33c806fdf Adopt new str res api prototype. 1999-07-22 04:41:11 +00:00
jfrancis@netscape.com 601651100c assorted work to expose nav html dtd to the editor 1999-07-19 22:49:21 +00:00
akkana@netscape.com 7b183885ca Fix paste html; remove some unneeded inclusions 1999-07-19 19:37:08 +00:00
mjudge@netscape.com 8e4c13fcd1 massive checkin for selection. adjusting nsIDOMSelection api and nsIFrameSelection. many "small" changes. this is not as bad as it looks. layout will not be affected other than "getter" calls for selection. and all consumers of selection should be in good shape. 1999-07-18 02:27:19 +00:00
buster@netscape.com 0926cbc8f9 replaced IID's with CID's where they were appropriate, and removed lots of
NS_DEFINE_IID macros in favor of GetCID() wherever I could.
plus some minor bug fixes.
1999-07-15 19:13:46 +00:00
mjudge@netscape.com a8748298ee checkin for carpool for multiple seleciton/ime selection and api changes 1999-07-15 18:19:20 +00:00
sfraser@netscape.com 86f4df5d30 Document modification count maintenance. 1999-07-14 22:29:39 +00:00
akkana@netscape.com 3fd1dc7c68 Restructure the editor output routines to allow passing in
a mime type and a flag argument.  Also fix the following bugs:
9746: get rid of bogus empty <style> in head.
8143: save wrap column in editor shell in case it's set before the
      editor is created.
9470, 9488: allow explicit specification of formatted output.
1999-07-14 18:54:29 +00:00
cmanske@netscape.com 88e132f05e Generic message dialog, fix insert element-related bugs, initial personal dictionary dialog, other editor bugs 1999-07-14 15:24:33 +00:00
rods@netscape.com b95a6b8e87 Fixed up paste code to help support HTML paste 1999-07-09 19:43:59 +00:00
kin@netscape.com b7898505d6 Fix for bug #7495: [PP]Undo on Linux shows intermediate steps.
Modified Undo() and Redo() to call Begin/EndUpdateViewBatch().
1999-07-06 23:02:12 +00:00
cmanske@netscape.com e75b508b07 Changes to editor XUL dialogs to accomodate new window-as-box changes 1999-07-02 22:52:34 +00:00
sfraser@netscape.com 4d6a15daca Added transactions for applying and removing style sheets 1999-07-02 03:57:50 +00:00
warren@netscape.com 276f59a46e Fixed NewURL for necko. 1999-07-01 21:48:46 +00:00
buster@netscape.com 93b263094f minor bug fixes 1999-07-01 20:46:59 +00:00
kin@netscape.com 55ce07b8a7 Added ApplyStyleSheet() method to the various editor interfaces. 1999-07-01 19:32:35 +00:00
buster@netscape.com ac9871a79f 0. possible fix for Sun build bustage.
1. IsEditable is much less hacky.  It basically says:
  1. if the node is a special bogus text node, it's not editable
  2. if the node is a text node with only newlines, then it's not editable
  3. if the node has no frame associated with it, then it is not editable
  4. otherwise, it is editable.
As part of this, I had to make IsEditable non-static.  This had some cascading effects on static methods that called
IsEditable, which likewise had to be made non-static.

2. SetTextProperties now works when the endpoints are leaf nodes (like images), not just text.  Charlie, you should
put this through some stress cases.
1999-07-01 18:42:28 +00:00
scc@netscape.com 90f6a8560a |nsISupports::GetIID()| --> |nsCOMTypeInfo<nsISupports>::GetIID()| 1999-06-29 21:01:31 +00:00
tague@netscape.com 8269007861 Added clause and selection support for Input Methods. Fixes bug #8639, #8459, #6989, #7824 1999-06-29 20:31:22 +00:00
buster@netscape.com b02974058a implemented most of max length handling 1999-06-25 22:57:26 +00:00
mcafee@netscape.com ab87fc3a4f Adding comment for BeOS. 1999-06-25 14:26:21 +00:00
jfrancis@netscape.com 229d9da2cb these are not the droids you are looking for 1999-06-25 10:36:54 +00:00
jfrancis@netscape.com 3b28bb7879 improvement of editing rules for insert list, indent, outdent, and change alignment 1999-06-25 09:33:02 +00:00
cmanske@netscape.com 40d2be91d3 Expanded nsIEditPropery to include all (I hope) HTML tags 1999-06-25 03:18:42 +00:00
buster@netscape.com 68c155c83f added nsIEditProperty::img 1999-06-24 23:34:41 +00:00
cmanske@netscape.com 7ee032b094 Fixed GetBodyElement. Changed editor test doc to not use CSS for background. Initial code to edit element properties when double-clicking on element. 1999-06-24 20:59:45 +00:00
warren@netscape.com 753ac43fff Renamed nsIURL to nsIURI in preperation for necko. More NECKO ifdefs too. 1999-06-23 03:29:44 +00:00
akkana@netscape.com e2db8fafed Use deep first/last child for Beginning/EndOfDocument methods 1999-06-22 21:42:44 +00:00
jfrancis@netscape.com 605dafb7d2 turn off link following in the editor 1999-06-21 07:49:03 +00:00
valeski@netscape.com 3737aa0d15 NECKO ifdef (ifdef'd _off_ by default) this checkin should not impact anything. checkin approved. If someone runs into a problem, call me at 303.546.0061. 1999-06-18 17:34:08 +00:00
jfrancis@netscape.com 1ea16ef3d5 bug 8303; rvd kin; aprvd buster; aprvd chofmann 1999-06-16 21:38:04 +00:00
akkana@netscape.com 38a0c59915 8283: Fix crash because selectin wasn't initialized. r=sfraser/a=leaf 1999-06-16 21:02:25 +00:00
jfrancis@netscape.com 951c9d8cc9 editor rules framework for {make list, indent, outdent, change alignment} 1999-06-16 05:02:43 +00:00
kin@netscape.com e381bbffbb * Added StartLogging() and StopLogging() methods to nsIEditor,
nsIHTMLEditor, nsITextEditor, and nsIEditorShell and enabled
  the "Start Log" and "End Log" menu items in the editor test bed.

* Modified makefiles for Unix and Win32 to turn on  Editor API Logging.

* Added action argument to the DeleteSelection() method in nsIEditorShell.

* Modified nsJSTxnLog to use nsJSEditorLog when writing it's output.
1999-06-14 20:02:46 +00:00
buster@netscape.com 815afeb053 changed the way nsEditProperty is used. Right now, it's our placeholder
for HTML and CSS atoms, since we can't get these from layout yet.  The old
use assumed one editor, but as we know many editors can exist simultaneously.
Now, the editors share a singleton which is fetched from a factory method,
saving memory and allocation overhead.
1999-06-12 21:15:14 +00:00
sfraser@netscape.com aaa6370b50 Add factory for EditorShell, and fix case of GetMonitor call. 1999-06-11 19:01:07 +00:00
akkana@netscape.com e506043f6f Implement InsertHTML.
Also, some minor fixes, like warning removal and addition of error checking
in files which needed it.
1999-06-10 21:31:42 +00:00
kin@netscape.com 8bdcd74b95 First pass checkin of the JavaScript editor logging mechanism. All changes are
ifdef'd with ENABLE_JS_EDITOR_LOG.
1999-06-10 19:41:40 +00:00
cmanske@netscape.com 105b993b6e Fixed fingers-to-quick checkin error 1999-06-09 02:28:47 +00:00
cmanske@netscape.com 24fb577142 Moved destination of editor string bundle file to editor's chrome directory 1999-06-09 02:26:48 +00:00
cmanske@netscape.com e4f48b3b80 Added support for prefs and string bundles for editor, various bug fixes, preliminary Horizontal Line dialog work 1999-06-09 01:27:08 +00:00
buster@netscape.com 63d11cc3fd * Added nsAutoSelectionReset, a tiny class that resets the selection to what it was before a block transformation.
* Added some code to restore selection after RemoveTextProperty.
* Made a tiny change to the way the editor holds onto the transaction manager, so client (like the ender text control) can
turn undo on and off effectively
* Fixed a bug in IsNodeInline that was causing GetBlockParent to return the wrong parent node (and who knows what
other mischief) where atom compares were being done on strings of different case, for <B>, "b" vs. "B".  The DOM
method nsIDOMElement::GetTagName forced the returned tag name to upper case.  I don't know how long that has
been true, but I assume it's a fairly recent change (or something on our side related to it changed recently) or this method
never would have worked.  I also found a few cases of nsString::Equals that I changed to EqualsIgnoreCase
* Made some general improvements to the interaction between editors and rules, so that the aCancel out param is always
intialized, and all rules with Will... are matched with a Did... call.  Added Will/DidSetTextProperty() and
Will/DidRemoveTextProperty().  This helps enable plain text mode.  Added a skeleton for max length support in text editor.
* fixed some warnings.
1999-06-08 06:04:51 +00:00
briano@netscape.com b2f8895eaf Handle the (Unix) platform-specific DLL naming conventions properly. 1999-06-04 22:17:30 +00:00
jfrancis@netscape.com 841a5b0630 fixing a comment 1999-06-03 05:58:38 +00:00
kin@netscape.com c5fb40e1c4 Fixed double addref in EnableUndo() that was causing us to leak the transaction manager on destruction of the editor. 1999-05-28 21:49:24 +00:00