Notebook
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

46 lines
962 B

<?php
use Plugins\Notebook\Model\Notebook;
use Sc\Util\HtmlElement\El;
use Sc\Util\HtmlStructure\Html\Html;
/**
* @var Notebook $notebook
*/
Html::create($notebook?->title ?: '不存在的页面');
if (!$notebook) {
Html::loadThemeResource('ElementUI');
}else{
Html::css()->load('/froala/froala_editor.pkgd.min.css');
}
Html::css()->addCss(<<<CSS
#app {
width: 1100px;
margin: auto;
border-left: 1px #ddd solid;
border-right: 1px #ddd solid;
padding: 20px;
box-sizing: border-box;
background-color: white;
overflow: auto;
height: 100vh;
}
body{
background-color: #F2F3F5;
margin: 0 !important;
font-size: 14px;
}
table,table tr th, table tr td {
border:1px solid #ddd;
}
table {
border-collapse: collapse;
padding:2px;
}
CSS);
return $notebook?->content
? El::double('div')->addClass('fr-element fr-view')->append($notebook->content)
: ' <el-empty description="Not Found" />';