Учитывая, что редактор WYSIWYG использует <iframe>
, а <iframe>
является его собственным документом, ваш CSS не будет применяться к содержимому <iframe>
.
.<iframe>
результирующая структура DOM выглядит примерно так ...
<html>
<head>
<title>iframe example</title>
<link type="text/css" rel="stylesheet" href="outer.css" />
</head>
<body>
<div>
The contents of the outer document!
<iframe>
<html>
<head>
<title>iframe example</title>
<link type="text/css" rel="stylesheet" href="inner.css" />
</head>
<body>
<div>
The Contents of the iFrame!
</div>
</body>
</html>
</iframe>
</div>
</body>
</html>
... и правила, определенные в outer.css
, не применяются к содержимому <iframe>
, исодержимое inner.css
не относится к внешнему документу.