remove inline css

This commit is contained in:
Adrian Amaglio 2023-07-31 14:34:34 +02:00
parent 94bfaf34e9
commit 310280260f
3 changed files with 5 additions and 1 deletions

3
css/main.css Normal file
View File

@ -0,0 +1,3 @@
.red {
color: #f24b4b;
}

View File

@ -3,6 +3,7 @@
<head>
<meta charset="utf8" />
<link rel="stylesheet" href="grapesjs/dist/css/grapes.min.css">
<link rel="stylesheet" href="css/main.css">
<script src="grapesjs/dist/grapes.min.js"></script>
</head>
<body>

View File

@ -8,7 +8,7 @@ if (projectID == '' || isNaN(projectID)) {
const projectEndpoint = `/projects/${projectID}`;
var editor = grapesjs.init({
container : '#gjs',
components: '<div style="color:red;">Le chargement du projet est en cours. Si ce message ne disparait pas, le chargement a sans doutes échoué…</div>',
components: '<div class="red">Le chargement du projet est en cours. Si ce message ne disparait pas, le chargement a sans doutes échoué…</div>',
i18n: {
locale: 'fr', // default locale
detectLocale: false, // by default, the editor will detect the language