mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat: HTML node (#5107)
* ✨ Create HTML templating node PoC * ♻️ Apply feedback * 🐛 Scope CSS selectors * ✏️ Adjust description * ✏️ Adjust placeholder * ⚡ Replace two custom files with package output * ➕ Add `codemirror-lang-html-n8n` * 👕 Appease linter * 🧪 Skip event bus tests * ⏪ Revert "Skip event bus tests" This reverts commit 5702585d0de3b8465660567132e9003e78f1104c. * ✏️ Update codex * 🧹 Cleanup * 🐛 Restore original for `continueOnFail` * ⚡ Improve `getResolvables`
This commit is contained in:
44
packages/nodes-base/nodes/Html/placeholder.ts
Normal file
44
packages/nodes-base/nodes/Html/placeholder.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
export const placeholder = `
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>My HTML document</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>This is an H1 heading</h1>
|
||||
<h2>This is an H2 heading</h2>
|
||||
<p>This is a paragraph</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<style>
|
||||
.container {
|
||||
background-color: #ffffff;
|
||||
text-align: center;
|
||||
padding: 16px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #ff6d5a;
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: #909399;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
padding: 8px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
console.log("Hello World!");
|
||||
</script>
|
||||
`.trim();
|
||||
Reference in New Issue
Block a user