javascript - CKEditor: Plug-in button won't appear -


using latest ckeditor, i'm attempting add example plugin, "timestamp" documentation. downloaded of code github @ link provided , put in proper location.

the docs: http://docs.ckeditor.com/#!/guide/plugin_sdk_sample github link: https://github.com/ckeditor/ckeditor-docs-samples/tree/master/tutorial-timestamp

ckeditor/plugins/timestamp/plugin.js ckeditor/plugins/timestamp/icons/timestamp.png ckeditor/plugins/timestamp/samples/timestamp.html 

in config.js file, put in line:

config.extraplugins = 'timestamp'; 

i've closed browser, used other browsers haven't used in months, etc, , no matter what, button icon never appears.

i've googled this, , read several q's here on stackoverflow. many have talked misnamed icons or missing icons or whatever, time, it's there, , it's came github.

once works, can attempt move on plugins have older ckeditor v4.0 installation. thanks!

you need add plugin ckeditor.replace well. simple example.

<!doctype html> <html>     <head>         <meta charset="utf-8">         <title>a simple page ckeditor</title>         <!-- make sure path ckeditor correct. -->         <script src="ckeditor.js"></script>     </head>     <body>         <form>             <textarea name="editor1" id="editor1" rows="10" cols="80">                 textarea replaced ckeditor.             </textarea>             <script>                 // replace <textarea id="editor1"> ckeditor                 // instance, using default configuration.                 ckeditor.replace( 'editor1', {                     extraplugins: 'timestamp'                 }  );             </script>         </form>     </body> </html> 

the config.js file.

ckeditor.editorconfig = function( config ) {     // define changes default configuration here. example:     // config.language = 'fr';     // config.uicolor = '#aadc6e';      config.toolbargroups = [         { name: 'document', groups: [ 'mode', 'document', 'doctools' ] },         { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },         { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing'] },         { name: 'forms', groups: [ 'forms' ] },         '/',         { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },         { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph', 'timestamp'] },         { name: 'links', groups: [ 'links' ] },         { name: 'insert', groups: [ 'insert' ] },         '/',         { name: 'styles', groups: [ 'styles' ] },         { name: 'colors', groups: [ 'colors' ] },         { name: 'tools', groups: [ 'tools' ] },         { name: 'others', groups: [ 'others' ] },         { name: 'about', groups: [ 'about' ] }     ];     config.extraplugins = 'timestamp';     config.allowedcontent = true; }; 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -