WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
// style included in the iframe documentthis.pageStyle = "";
// style included in the iframe documentthis.pageStyle = '@import url(/cms/include/htmlarea/iframe.css);';
$query_wysiwyg = $database->query("SELECT section_id FROM ".TABLE_PREFIX."sections WHERE page_id = '$page_id' AND module = 'wysiwyg'"); if($query_wysiwyg->numRows() > 0) { while($wysiwyg_section = $query_wysiwyg->fetchRow()) { echo 'var editor = new HTMLArea("content'.$wysiwyg_section["section_id"].'");'
$query_pages=$database->query("SELECT template FROM ".TABLE_PREFIX."pages WHERE page_id = '$page_id'");$page_row=$query_pages->fetchRow();$templatename=$page_row['template'];if ($templatename=='') $templatename=DEFAULT_TEMPLATE;echo 'var config = new HTMLArea.Config();config.pageStyle = "@import url('.WB_PATH.'/templates/'.$templatename.'/screen.css);";'; $query_wysiwyg = $database->query("SELECT section_id FROM ".TABLE_PREFIX."sections WHERE page_id = '$page_id' AND module = 'wysiwyg'"); if($query_wysiwyg->numRows() > 0) { while($wysiwyg_section = $query_wysiwyg->fetchRow()) { echo 'var editor = new HTMLArea("content'.$wysiwyg_section["section_id"].'",config);'
Actually, I got it to work. Â You have to specify the stylesheet in the include/htmlarea/htmlarea.js file AND in the modules/wysiwyg/modify.php file.
{font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;} h1{font-size: 14px;color: #C6423C;font-weight: bold;padding: 0;}