A
A
Alexander Wolf2015-10-29 18:43:06
JavaScript
Alexander Wolf, 2015-10-29 18:43:06

How to connect CKEditor to meteor?

Good evening! We chose CKEditor because of its modularity and convenience. However, there was a problem connecting it to the meteor app.
When connected, he tries to pull a bunch of other files with him, which is not good, of course.
Actually, the subject is in the title :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2015-10-30
@mannaro

Folders in CKEditor folder
adapters
lang
plugins
skins
ckeditor.js
config.js
contents.css
styles.js Include
files

<head>
   <script type="text/javascript" src="/ckeditor/ckeditor.js"></script>
   <script type="text/javascript" src="/ckeditor/adapters/jquery.js"></script>
 </head>

In your template:
<template name="yourTemplate">
   <textarea id="content" name="content"></textarea>
 </template>

some js in the template:
Template.yourTemplate.rendered = function() {
   $('#content').ckeditor();
 };

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question