• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Force captivate to use custom CPM.js

New Here ,
Sep 08, 2020 Sep 08, 2020

Copy link to clipboard

Copied

I got a CPM.js located in C:\Program Files\Adobe\Adobe Captivate 2019 x64\HTML\assets\js.

 

I tried to update the index.html file to use the above file and put the following line before /head:

</script>
     <script type="text/javascript" src="C:\Program Files\Adobe\Adobe Captivate 2019 x64\HTML\assets\js\CPM.js"></script>

However, when I look at the CPM.js file that is produced after publishing, I do not see the custom CPM.js file change reflected.

I used to have this working, but needed to do a reinstall and forgot how to make this work again. Any pointers would be greatly appreciated.

 

 

Views

108

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 09, 2020 Sep 09, 2020

Copy link to clipboard

Copied

I've only copied and pasted any custom CPM.js into my final published project. I've never tried to have a custom index.html file point to a custom CPM.js file. It's more of a manual process but copying pasting the edited version, although manual, works fine. 

Paul Wilson, CTDP

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 18, 2022 Oct 18, 2022

Copy link to clipboard

Copied

In the body of the index.html file you will find a script section containing this line:
var lJSFiles = [ @JSFILES_ARRAY ];
Try adding the following line immediately after:
lJSFiles.push('assets/js/CPM.js');
Not sure if the default CPM.js will overwrite yours or not, but this is how I get other javascript files to pull on preview or publish.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 19, 2022 Oct 19, 2022

Copy link to clipboard

Copied

LATEST

Just change the name, it is more than likely getting overwritten when Captivate creates it's CPM.js

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines