Added to your ckeditor tags now tell me how to optimize it? Or how can you add your own plug-in tags to the optimized one?
Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer by the participants Alex , user194374, Denis , Bald , Denis Bubnov 14 Dec '16 at 11:04 .
The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .
- oneAnd what do you mean by its optimization? - Visman
- Well, when creating an editor on the ckeditor.com/builder page, at the very bottom there is a big and optimized, I chose big.
- If tags were added via plugins, then you could immediately download the optimized version. If not, do the addition through the plugins and download the optimized version. Because in the optimized version, all js files are compressed, and all the kernel functionality is assembled into one file. In the raw there is no compression and the functionality is scattered on a heap of individual js. - Visman
- The plugins do not have the tags I need, how to be? Maybe there is an opportunity to add my own plug-ins to the optimized ones, I also have similar plug-ins in the same place, but only where to connect them - Admin Community
- Optimize yourself. I think the optimization of the usual js ckedit optimization is no different. - Sergey
1 answer
- Download the optimized version of CKEditor and put it on the site;
- Create your own plugin with new tags and copy it to the plugins folder of the installed CKEditor;
Initialize CKEditor on the pages (I do this before the
</body>):<script type="text/javascript" src="http://Π²Π°Ρ.ΡΠ°ΠΉΡ/js/ckeditor/ckeditor.js"></script> <script type="text/javascript"> CKEDITOR.replace( "ckeditor1" , { extraPlugins: "ΠΈΠΌΡΠΠ°ΡΠ΅Π³ΠΎΠΠ»Π°Π³ΠΈΠ½Π°1,ΠΈΠΌΡΠΠ°ΡΠ΅Π³ΠΎΠΠ»Π°Π³ΠΈΠ½Π°2", // <-- ΠΏΠΎΠ΄ΠΊΠ»ΡΡΠ΅Π½ΠΈΠ΅ Π²Π°ΡΠΈΡ ΠΏΠ»Π°Π³ΠΈΠ½ΠΎΠ² toolbarGroups: [ // <-- Π½Π°ΡΡΡΠΎΠΉΠΊΠΈ ΠΊΠ½ΠΎΠΏΠΎΠΊ { name: "basicstyles", groups: [ "basicstyles", "cleanup" ] }, { name: "paragraph", groups: [ "list", "indent", "blocks", "align", "bidi", "paragraph" ] }, { name: "links", groups: [ "links" ] }, { name: "insert", groups: [ "insert" ] }, "/", { name: "styles", groups: [ "styles" ] }, { name: "colors", groups: [ "colors" ] }, { name: "clipboard", groups: [ "clipboard", "undo" ] }, { name: "document", groups: [ "mode" ] } ], removeButtons: "Save,NewPage,Preview,Print,Templates,Find,Replace,BidiLtr,BidiRtl,Language,Flash,PageBreak,Iframe" } ); </script>
Following the example:
The contents of CKEditor lie on the site in the js/ckeditor/ folder;
Your plugins are in the js/ckeditor/plugins/ΠΈΠΌΡΠΠ°ΡΠ΅Π³ΠΎΠΠ»Π°Π³ΠΈΠ½Π°1/ , js/ckeditor/plugins/ΠΈΠΌΡΠΠ°ΡΠ΅Π³ΠΎΠΠ»Π°Π³ΠΈΠ½Π°2/ ;ckeditor1 id textarea on which CKEditor "hangs".
- Thank you dear! I'll try in a couple of hours! - Admin Community
- Added script before closing / body gives Uncaught TypeError error: Cannot read property 'getEditor' of undefined (...) a @ ckeditor.js: 332 CKEDITOR.replace @ ckeditor.js: 336 (anonymous function) @ (index): 712 <- - CKEDITOR.replace ("ckeditor" - Admin Community
- @AdminCommunity, did you id textarea correctly specified in CKEDITOR.replace ()? - Visman
- If I specify the id textarea where I am bound, I get an error ... ckeditor.js: 332 Uncaught The editor instance is already attached to the provided element. Already tied well as it is logical, but how can it not be tied? - Admin Community
- In general, these errors are there, but the plugin was added ... to the panel and it works, why not bother then ... - Admin Community