Skip to content

Commit

Permalink
added attr data-contenttype for code editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr. Frank Hoffmann authored and Dr. Frank Hoffmann committed Jul 11, 2018
1 parent f9addd5 commit 12a0259
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Products/PythonScripts/www/pyScriptEdit.dtml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</dtml-if>

<dtml-with keyword_args mapping>
<textarea id="content" class="form-control zmi-zpt zmi-code col-sm-12"
<textarea id="content" data-content_type="python" class="form-control zmi-zpt zmi-code col-sm-12"
name="body:text" wrap="off" rows="20">&dtml-body;</textarea>
</dtml-with>

Expand All @@ -64,11 +64,11 @@
<form action="ZPythonScriptHTML_upload" method="post" enctype="multipart/form-data" class="zmi-upload mt-4">

<p class="form-help">
You may upload the source for &dtml-title_and_id; using the form below.
You may upload the source for <em>&dtml-title_and_id;</em> using the form below.
Choose an existing file from your local computer by clicking <em>browse</em>
The contents of the file should be a valid script with an optional
&quot;##data&quot; block at the start. You may click the following link
to <a href="document_src">view or download</a> the current source.
<code>##data</code> block at the start. You may click the following link
to <a href="document_src" target="_blank">view or download</a> the current source.
</p>

<div class="input-group" title="Select Local File for Uploading">
Expand Down

0 comments on commit 12a0259

Please sign in to comment.