Re: Using JS files in PCF
Thanks I really appreciate the help. If we can get this working I'll buy you a Starbucks card.
The repo is at: https://github.com/edhalsim/SamplePCF
Right now it builds, but then says "can't load control" when it runs. I assume that's because I don't have any HTML to render (I'm not even sure where to put it).
My goal is to wrap the CK editor 4 along with a plug-in. The structure is like this:
ckeditor
- plugins
- skins
ckeditor.js
config.js
styles.js
etc.
To use it on a "normal" web site I would do the following:
<div id="editor">
<p>This is the editor content.</p>
</div>
<script src="./node_modules/ckeditor4/ckeditor.js"></script>
<script>
CKEDITOR.replace( 'editor' );
</script>
I'm not sure how to do this in your framework. Normally I would do something like:
this.container.setAttribute("id", "editor");