ng2 ckeditor add script locally in Angular

Viewed 13

Good morning,

I'm trying to install ckeditor i follow this tutorial https://www.npmjs.com/package/ng2-ckeditor, everything works fine until I try to get the script file locally I downloaded all the content and put it in ckeditor.js file, but it doesn't work.

html

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Ckeditor</title>
  <base href="/">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>



  <script src="https://cdn.ckeditor.com/4.19.1/full-all/ckeditor.js"></script> // It works like this


  <script src="./ckeditor.js"></script> // and not like that


  <app-root></app-root>
</body>
</html>

enter image description here

thanks.

0 Answers
Related