Answers.Body: <p>This is by design. Revisions are not meant to be editable.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-27T17:30:23.933Z
Answers.LastActivityDate: 2018-07-27T17:30:23.933Z
Answers.UserDisplayName: Josh
Body: <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>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-20T10:55:18.570Z
Comments.Text: I think this may be a bug as it doesn't work for the CKEditor plugin either. https://github.com/craftcms/ckeditor/issues/14
Comments.UserDisplayName: Josh
Tags: <plugin-development><craft3><field>
Title: Craft 3 Field Plugin not firing $view->registerJs in entry versions
ThreadText: # 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.
  
  
  ---
  
  