<p>This is by design. Revisions are not meant to be editable.</p>

CC BY-SA 4.0
2018-07-27T17:30:23.933Z
2018-07-27T17:30:23.933Z
Josh
<p>I am creating a Craft 3 plugin. It seems to work fine when editing regular entries but when I open a revision the JS I'm injecting using the below doesn't appear on the page.</p>

<pre><code>$view-&gt;registerJs($js, View::POS_HEAD);
</code></pre>

<p>This does work on regular entries. Any ideas?</p>

CC BY-SA 4.0
2018-07-20T10:55:18.570Z
I think this may be a bug as it doesn't work for the CKEditor plugin either. https://github.com/craftcms/ckeditor/issues/14
Josh
<plugin-development><craft3><field>
Craft 3 Field Plugin not firing $view->registerJs in entry versions
# Craft 3 Field Plugin not firing $view->registerJs in entry versions

(Asked by: username_0 on 2018-07-20)

I am creating a Craft 3 plugin. It seems to work fine when editing regular entries but when I open a revision the JS I'm injecting using the below doesn't appear on the page.
$view->registerJs($js, View::POS_HEAD);

This does work on regular entries. Any ideas?

**Tags:** plugin-development, craft3, field

> **Comments:**
> **username_0**: I think this may be a bug as it doesn't work for the CKEditor plugin either. https://github.com/craftcms/ckeditor/issues/14  

---

## 1 answers

### Answer by username_0 on 2018-07-27. Score: 2 | Accepted answer

This is by design. Revisions are not meant to be editable.


---

