Skip to content

Commit 05f2990

Browse files
kazuhitoyokoidceejay
authored andcommitted
Change text/x-red to text/html (#146)
1 parent ed8e675 commit 05f2990

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

docs/creating-nodes/config-nodes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ key differences:
3434
});
3535
</script>
3636

37-
<script type="text/x-red" data-template-name="remote-server">
37+
<script type="text/html" data-template-name="remote-server">
3838
<div class="form-row">
3939
<label for="node-config-input-host"><i class="icon-bookmark"></i> Host</label>
4040
<input type="text" id="node-config-input-host">

docs/creating-nodes/first-node.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,14 @@ For more information about the runtime part of the node, see [here](node-js).
125125
});
126126
</script>
127127

128-
<script type="text/x-red" data-template-name="lower-case">
128+
<script type="text/html" data-template-name="lower-case">
129129
<div class="form-row">
130130
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
131131
<input type="text" id="node-input-name" placeholder="Name">
132132
</div>
133133
</script>
134134

135-
<script type="text/x-red" data-help-name="lower-case">
135+
<script type="text/html" data-help-name="lower-case">
136136
<p>A simple node that converts the message payloads into all lower-case characters</p>
137137
</script>
138138
```

docs/creating-nodes/help-style-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ a consistent appearance between nodes.
109109
The above example was created with the following HTML.
110110

111111
~~~~~html
112-
<script type="text/x-red" data-help-name="node-type">
112+
<script type="text/html" data-help-name="node-type">
113113
<p>Connects to a MQTT broker and publishes messages.</p>
114114

115115
<h3>Inputs</h3>

docs/creating-nodes/node-html.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ contains three distinct part, each wrapped in its own `<script>` tag:
1313
what icon to use. It is within a regular javascript script tag
1414

1515
2. the edit template that defines the content of the edit dialog for the node.
16-
It is defined in a script of type `text/x-red` with `data-template-name` set
16+
It is defined in a script of type `text/html` with `data-template-name` set
1717
to the [type of the node](#node-type).
1818

1919
3. the help text that gets displayed in the Info sidebar tab. It is defined in a
20-
script of type `text/x-red` with `data-help-name` set to the
20+
script of type `text/html` with `data-help-name` set to the
2121
[type of the node](#node-type).
2222

2323

@@ -80,7 +80,7 @@ editor. It is an object with the following properties:
8080

8181
The edit template for a node describes the content of its edit dialog.
8282

83-
<script type="text/x-red" data-template-name="node-type">
83+
<script type="text/html" data-template-name="node-type">
8484
<div class="form-row">
8585
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
8686
<input type="text" id="node-input-name" placeholder="Name">
@@ -115,7 +115,7 @@ The content of the first `<p>` tag is used as the tooltip when hovering over
115115
nodes in the palette.
116116

117117
~~~~html
118-
<script type="text/x-red" data-help-name="node-type">
118+
<script type="text/html" data-help-name="node-type">
119119
<p>Some useful help text to introduce the node.</p>
120120
<h3>Outputs</h3>
121121
<dl class="message-properties">

0 commit comments

Comments
 (0)