Adding noCSS flag to nsHTMLEditor; b=bugscape11956, r=brade, sr=kin

This commit is contained in:
glazman%netscape.com 2002-02-05 15:16:14 +00:00
Родитель 792ca39aca
Коммит 76f1156090
2 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -60,6 +60,7 @@ interface nsIPlaintextEditor : nsISupports
const short eEditorDisableForcedReflowsBit = 8; /* prevent immediate reflows */
const short eEditorEnableWrapHackBit = 9; /* allow the editor to set font: monospace on the root node */
const short eEditorWidgetBit = 10; /* bit for widgets */
const short eEditorNoCSSBit = 11; /* this HTML editor should not create css styles */
const long eEditorPlaintextMask = 1;
const long eEditorSingleLineMask = 2;
@ -72,7 +73,8 @@ interface nsIPlaintextEditor : nsISupports
const long eEditorDisableForcedReflowsMask = 256;
const long eEditorEnableWrapHackMask = 512;
const long eEditorWidgetMask = 1024;
const long eEditorNoCSSMask = 2048;
/**
* The length of the contents in characters.
*/

Просмотреть файл

@ -445,6 +445,8 @@ NS_IMETHODIMP
nsHTMLEditor::SetFlags(PRUint32 aFlags)
{
if (!mRules) { return NS_ERROR_NULL_POINTER; }
mCSSAware = !PRBool(aFlags | nsIPlaintextEditor::eEditorNoCSSMask);
return mRules->SetFlags(aFlags);
}