Skip to content

Commit

Permalink
initialize on pageload (publiclab#8670)
Browse files Browse the repository at this point in the history
  • Loading branch information
noi5e committed Dec 30, 2020
1 parent 2892710 commit 24589fa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/views/wiki/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,12 @@
<input aria-label="Wiki Title" tabindex="1" name="title" type="text" class="form-control" id="title" value="<% if @node && @node.latest %><%= @node.latest.title %><% else %><%= params[:title] %><% end %>">
</div>

<script>
<script type="application/javascript">
(function(){
$E.initialize({
textarea: "text-input",
preview: "preview"
});
$D = {
uid: <%= current_user.uid %>,
type: 'wiki'
Expand All @@ -87,7 +91,7 @@
<br />
</div>

<script>
<script type="application/javascript">
(function(){
publish = function(e) {
$('form.wiki-form').submit()
Expand Down

0 comments on commit 24589fa

Please sign in to comment.