remove inline css
This commit is contained in:
parent
94bfaf34e9
commit
310280260f
3
css/main.css
Normal file
3
css/main.css
Normal file
@ -0,0 +1,3 @@
|
||||
.red {
|
||||
color: #f24b4b;
|
||||
}
|
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user