316 Commits

Author SHA1 Message Date
scc%mozilla.org
9e28a8b643 fixing code that relied on implicit string construction; note that |NS_LITERAL_STRING| does not produce an |nsString|, it produces something that is a |nsAReadableString|. Many functions still take |nsString&| arguments, and so |NS_LITERAL_STRING| is not appropriate in calling them, yet.
git-svn-id: svn://10.0.0.236/trunk@76734 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-20 00:34:08 +00:00
rcassin%supernova.org
a1433e6d19 Fix for 45645 (Can paste into ReadOnly textfield) r=akkana
git-svn-id: svn://10.0.0.236/trunk@76605 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 01:34:22 +00:00
jfrancis%netscape.com
691e87aa2b groundwork for 44684: adding a "GetAlignment" call to the editor so that ui can reflect alignment of selection
git-svn-id: svn://10.0.0.236/trunk@76274 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 12:07:10 +00:00
jfrancis%netscape.com
0b49f3bca3 fix for 48297: ome edit operations not scroling selection into view; r=fm
git-svn-id: svn://10.0.0.236/trunk@76262 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 02:39:37 +00:00
jfrancis%netscape.com
70ab4acbc7 fixing bustage. bizarre merge error?
git-svn-id: svn://10.0.0.236/trunk@76257 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 00:53:41 +00:00
jfrancis%netscape.com
765bda40d2 fix for 45281, cannot insert a table caption. r=fm
git-svn-id: svn://10.0.0.236/trunk@76254 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 23:53:34 +00:00
cmanske%netscape.com
aa6f5ab8c7 Restrict nsEditorShellMouseListener to HTML editor; fix to optimize GetSelectedNode for named anchors, b=47687, r=sfraser
git-svn-id: svn://10.0.0.236/trunk@76092 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 04:59:37 +00:00
cmanske%netscape.com
f3cfdd30aa Big UI fix checkin continued - same bugs as last checkin. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@75959 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 03:43:09 +00:00
sfraser%netscape.com
d2a1daeb55 Fix for 25161 -- allow editor to handle pages with form elements. Avoid infinite loop in editor, and add some CSS for form elements in editor. r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@75829 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 23:37:51 +00:00
bratell%lysator.liu.se
0f61387703 Fix for bug 46306, html-to-plaintext replies have > on blank lines. The fix was to strip ending new lines in the citer. r=akkana, a=waterson.
git-svn-id: svn://10.0.0.236/trunk@75700 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 06:05:27 +00:00
shanjian%netscape.com
309c493895 #14022 IME98 Reconversion does not work in HTML Editor
r = jfrancis
a = ftang
fix proposed by m_kato@ga2.so-net.ne.jp

New events are added to support reconversion. As a result, many files
are affected. They are:
editor:
  nsEditor.h nsEditor.cpp nsEditorEventListeners.cpp nsEditorEventListeners.h
  nsHTMLEditor.h nsHTMLEditor.cpp nsIEditorIMESupport.h
dom and layout:
  nsIPrivateCompositionEvent.h nsDOMEvent.h nsDOMEvnet.cpp nsEventListenerManager.cpp
  nsIDOMCompositionListener.h
widget:
  nsGUIEvent.h nsWindow.h nsWindow.cpp


git-svn-id: svn://10.0.0.236/trunk@75606 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 21:43:29 +00:00
brade%netscape.com
6ab4e4c364 fix src/dest d&d (do move if in same doc unless modifier key is pressed); bug #45607; r=kin
git-svn-id: svn://10.0.0.236/trunk@75600 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 20:51:33 +00:00
jfrancis%netscape.com
868ae3f8f1 take 2: fix for 22227 and partial fix for 46209; r=mjudge; a=beppe
git-svn-id: svn://10.0.0.236/trunk@74873 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-27 01:03:16 +00:00
kin%netscape.com
4554a01d45 Backout previous checkin/fix for 46209 & 22227 since in some instances
the frame data it relies on does not contain valid info. This causes
data loss in some cases like when making text bold.
a=granrose


git-svn-id: svn://10.0.0.236/trunk@74816 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-26 18:52:59 +00:00
jfrancis%netscape.com
ab22fc3f24 fix for 46209 & 22227; list items and table cells with a single space gave you unclickable content in the editor. r=mjudge
git-svn-id: svn://10.0.0.236/trunk@74811 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-26 13:07:54 +00:00
anthonyd%netscape.com
57bfacee97 fix for regression, bug#45477
cant insert hrules, images, etc...
r=brade, a=granrose


git-svn-id: svn://10.0.0.236/trunk@74254 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 18:38:24 +00:00
mjudge%netscape.com
1f23cf0495 anthonyd: r=mjudge bug 39919 letting DOM level 2 stuff work for the editor. eliminating createelementNS and using the factory instead.
git-svn-id: svn://10.0.0.236/trunk@74199 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:15:41 +00:00
akkana%netscape.com
b1d2c282a3 Take my name out of a debug printf -- tired of seeing all that output
git-svn-id: svn://10.0.0.236/trunk@74190 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 22:50:39 +00:00
jfrancis%netscape.com
fb9119fcee fix for 36570; mail signature shows up in middle of quoted text
git-svn-id: svn://10.0.0.236/trunk@74128 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 23:44:56 +00:00
jfrancis%netscape.com
930530f695 fixing increase/decrease font bustage in editor
git-svn-id: svn://10.0.0.236/trunk@73854 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 23:17:37 +00:00
jfrancis%netscape.com
aa3d7d7f48 bug fixes:
41744 - editor shouldnt be quite as loosy goosy about html 4.0 as CnavDTD is;

41746 - editor ui state (paragraph format feedback) wrong if a <br> is embedded inside the current block;

41971 - using alignment inside table cells gives unexpected results.


git-svn-id: svn://10.0.0.236/trunk@73515 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 09:23:41 +00:00
mjudge%netscape.com
57f0cefd69 fix for 42188, r=akkana 42347. use selection controller to tell the doc if it should display non-text-selection.
git-svn-id: svn://10.0.0.236/trunk@73023 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 04:00:45 +00:00
cmanske%netscape.com
290fb40fb7 Implement switching betweeen TH and TD elements for table editing. b=20973, r=jfrancis, akkana
git-svn-id: svn://10.0.0.236/trunk@72891 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 05:39:54 +00:00
brade%netscape.com
57c4115007 fix returned error codes (as part of bug #42510)
git-svn-id: svn://10.0.0.236/trunk@72659 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 14:25:34 +00:00
rbs%maths.uq.edu.au
de23cc3486 Change invalid REC-html40 to correct XHTML namespace. b:7834. a:ekrock@netscape.com
git-svn-id: svn://10.0.0.236/trunk@72300 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-15 09:54:41 +00:00
cmanske%netscape.com
949e725655 New method for table editing (b=20973, r=jfrancis); Use nsIStyleSheet::SetEnable() for editmode stylesheets instead of removing and reloading -- necessary for bug 40767. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@72189 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-14 04:58:29 +00:00
brade%netscape.com
c484d283c1 drag within editor implemented; r=kin; a=beppe; bug#6255
git-svn-id: svn://10.0.0.236/trunk@71792 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-08 14:47:29 +00:00
kin%netscape.com
0284be95cf Fix for bugs:
41605 Crash doing editor.js:EditorShutdown() when doing File->close
  41734 Applying Override StyleSheet causes Editor crash.

Added missing NS_IF_ADDREF in GetSelectedElement().

r=jfrancis@netscape.com  a=beppe@netscape.com


git-svn-id: svn://10.0.0.236/trunk@71791 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-08 14:45:12 +00:00
mjudge%netscape.com
cd909ee80b regression fix. my bad. changing editor code to have some duplicate code from nsSelection to output the whole document. r=donm a=donm regression ect.
git-svn-id: svn://10.0.0.236/trunk@71726 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-07 22:44:52 +00:00
mjudge%netscape.com
9ac751705d bug=34896 changing use of CreateElement to CreateElementNS. this was necessary outside of ender-lite also. good change. r=jfrancis a=beppe
git-svn-id: svn://10.0.0.236/trunk@71679 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-07 01:18:12 +00:00
warren%netscape.com
cc5d426fbe Renaming nsIAllocator to nsIMemory (and nsAllocator to nsMemory). API cleanup/freeze. Bug #18433
git-svn-id: svn://10.0.0.236/trunk@71450 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-03 09:46:12 +00:00
jfrancis%netscape.com
af793dca0e backend work for 41034: getting format feedback and list feedback untangled from each other.
git-svn-id: svn://10.0.0.236/trunk@71349 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-02 07:47:53 +00:00
sspitzer%netscape.com
620c1e0e28 turn off mjudge's printf for everyone but mjudge
git-svn-id: svn://10.0.0.236/trunk@71295 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-01 23:04:46 +00:00
mjudge%netscape.com
3161e04a02 fixing caret usages. hiding caret now is done by giving the stack destructor a caret * not a presshell
git-svn-id: svn://10.0.0.236/trunk@71231 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-01 02:38:13 +00:00
akkana%netscape.com
81f6895262 36559: run selection batching earlier in DeleteSelection, now that
the fix for 38713 allows it, so that deleting the selection doesn't
cause an autocopy. r=jfrancis a=beppe


git-svn-id: svn://10.0.0.236/trunk@71112 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-31 00:03:02 +00:00
jfrancis%netscape.com
ed99ef899d fixes:
14753, 29843, 39864, 40141, 
40139, 36679, 39542, 34729, 
34855, 37216, 39292, 26447

r=sfraser,cmanske,fm; a=beppe


git-svn-id: svn://10.0.0.236/trunk@70759 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-24 23:00:24 +00:00
jst%netscape.com
e4d9d527e8 Updating nsIContent to allow accessin the attribute prefix and not only the attribute name and value.
git-svn-id: svn://10.0.0.236/trunk@70202 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 00:21:53 +00:00
mjudge%netscape.com
78cd7564f7 no point in turning off the link handler if we are allready in text only mode.
git-svn-id: svn://10.0.0.236/trunk@69746 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-15 05:18:45 +00:00
mjudge%netscape.com
1f55bd749b writing out from content start using domseelction
git-svn-id: svn://10.0.0.236/trunk@69537 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-13 08:04:29 +00:00
brade%netscape.com
b1dc7bed7a allow drop of files into Composer (create image or link as appropriate)
git-svn-id: svn://10.0.0.236/trunk@69418 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-12 14:57:03 +00:00
cmanske%netscape.com
40262764bc Fixed SetBackgroundColor to remove 'bgcolor' when appropriate. Changed prompt for Title to use new string messages
git-svn-id: svn://10.0.0.236/trunk@69317 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-12 02:37:33 +00:00
mjudge%netscape.com
fee885fd3f changes to add hidden attribute on selection. also to make setcaret go through the selection controller
git-svn-id: svn://10.0.0.236/trunk@69174 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-11 04:22:32 +00:00
cmanske%netscape.com
6eede096f5 Lots of editor feature work: bugs 26286, 34519, 28498, 36998, 37089, 14342. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@68913 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-09 23:03:41 +00:00
jfrancis%netscape.com
69a8501658 fixed bug where undo could cause extra break nodes; fixed bug 37845: plaintext gets clutered with empty text nodes; fixed bug where toolbar style feedback was wrong after typing a return.
git-svn-id: svn://10.0.0.236/trunk@68563 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-07 01:33:42 +00:00
jfrancis%netscape.com
ce54ba7bc9 fixing bugs with paste; making paste not inherit local inline stlyes
git-svn-id: svn://10.0.0.236/trunk@68414 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-05 20:42:36 +00:00
cmanske%netscape.com
eddcbafbde Replace GetBodyElement with GetRootElement to fix bustage
git-svn-id: svn://10.0.0.236/trunk@68235 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-04 14:32:07 +00:00
cmanske%netscape.com
140f858dfd HTML Soure editor is working. Tweaked some dialog xul. Removed some unused stuff from EditorCommands.js
git-svn-id: svn://10.0.0.236/trunk@68234 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-04 14:02:03 +00:00
mjudge%netscape.com
447ac72532 massive change to prepare for ender-lite. should be a no-op for current implementation
git-svn-id: svn://10.0.0.236/trunk@68218 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-04 08:33:48 +00:00
akkana%netscape.com
a76b67e514 Restoring one of Joe's fixes, apparently lost in a CVS merge in the last checkin
git-svn-id: svn://10.0.0.236/trunk@68175 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-03 23:38:36 +00:00
akkana%netscape.com
b9a29fd98d 37560: convert platform to dom newlines before inserting html. r=cmanske
git-svn-id: svn://10.0.0.236/trunk@68106 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-03 21:18:23 +00:00