Giter Site home page Giter Site logo

Unable to set it up about ckeditor-imgur HOT 3 CLOSED

yfxie avatar yfxie commented on September 26, 2024
Unable to set it up

from ckeditor-imgur.

Comments (3)

yfxie avatar yfxie commented on September 26, 2024

the config.js should be look like following:

CKEDITOR.editorConfig = function(config) {
//....
config.extraPlugins = 'youtube,imgur';
config.imgurClientId = 'your client id';
config.toolbar = [
  { name: 'insert', items: [ 'Image', 'Table', 'Smiley', 'SpecialChar', 'Imgur' ] }
  // ...
];
}

the key is to add Imgur to your items

from ckeditor-imgur.

Tibo46 avatar Tibo46 commented on September 26, 2024

Hi,

Thanks for your reply. yes my config.js looks like that :

`CKEDITOR.editorConfig = function( config ) {

config.extraPlugins = 'imgur';
config.imgurClientID = 'xxxxxxxxxxxxxxx';
// Define changes to default configuration here. For example:
config.language = 'fr';
config.toolbar = [
    { name: 'clipboard', groups: [ 'clipboard', 'undo' ], items: [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ] },
    { name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ], items: [ 'Find', 'Replace', '-', 'SelectAll', '-', 'Scayt' ] },
    '/',
    { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ], items: [ 'Bold', 'Italic', 'Underline', 'Strike', '-', 'RemoveFormat' ] },
    { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ], items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-' ] },
    { name: 'links', items: [ 'Link', 'Unlink', 'Anchor' ] },
    '/',
    { name: 'styles', items: [ 'Styles', 'FontSize' ] },
    { name: 'colors', items: [ 'TextColor'] },
    { name: 'tools', items: [ 'Maximize', 'ShowBlocks' ] },
    { name: 'insert', items: [ 'Image', 'Imgur' ]}
];};`

I can see on my editor the icons for your plugin
image

but i am still getting the error telling me to add config.imgurClientID into my config.js file.
Maybe i'm missing something?

from ckeditor-imgur.

yfxie avatar yfxie commented on September 26, 2024

try to run bundle update ckeditor-imgur and see if the version is 1.0.2

from ckeditor-imgur.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.