Jump to content
WebFlake

Add Imgur upload button in the editor


Protesqu

Recommended Posts

52 minutes ago, ansube said:

@Protesqu I still get the same error. Here is my configuration:

/home/#/public_html/applications/core/interface/ckeditor/ckeditor/config.js


/*
 Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
 For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.editorConfig=function(a){a.toolbarGroups=[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard","undo"]},{name:"editing",groups:["find","selection","spellchecker"]},{name:"forms"},{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"paragraph",groups:["list","indent","blocks","align","bidi"]},{name:"links"},{name:"insert"},{name:"styles"},{name:"colors"},{name:"tools"},{name:"others"},{name:"about"}];a.removeButtons="Cut,Copy,Paste,Undo,Redo,Anchor,Underline,Strike,Subscript,Superscript";
a.removeDialogTabs="link:advanced"};

CKEDITOR.editorConfig = function( config ) {
    config.extraPlugins = 'imgur,dropler';
    config.imgurClientId = 'b730c68...';
};

I'm missing a line to add?

Dropler might be causing this...

Try to remove the Dropler settings completely to see if it fixes the issue.

If removing Dropler solves the issues, you might want to contact the developer and ask for assistance in solving this.

Are you using the last version of Dropler? What IPS version are you using ?

Edited by Protesqu
Link to comment
Share on other sites

7 hours ago, Protesqu said:

Dropler might be causing this...

Try to remove the Dropler settings completely to see if it fixes the issue.

If removing Dropler solves the issues, you might want to contact the developer and ask for assistance in solving this.

Are you using the last version of Dropler? What IPS version are you using ?

v4.1.18.2

Link to comment
Share on other sites

11 minutes ago, ansube said:

v4.1.18.2

Can you try this config for a sec:

/*
 Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
 For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.editorConfig=function(a){a.toolbarGroups=[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard","undo"]},{name:"editing",groups:["find","selection","spellchecker"]},{name:"forms"},{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"paragraph",groups:["list","indent","blocks","align","bidi"]},{name:"links"},{name:"insert"},{name:"styles"},{name:"colors"},{name:"tools"},{name:"others"},{name:"about"}];a.removeButtons="Cut,Copy,Paste,Undo,Redo,Anchor,Underline,Strike,Subscript,Superscript";
a.removeDialogTabs="link:advanced"};
CKEDITOR.editorConfig = function( config ) {
    config.extraPlugins = 'imgur';
    config.imgurClientId = '123....';
};

 

Link to comment
Share on other sites

2 hours ago, RoSiCkY said:

lol why make a button imgur embedded is now supported just paste the link and it will embed

 

 

I understand that it is because of the convenience and ease of the end user not having to go to the page directly from IMGUR but it would only be more feasible from the same editor (independently if done in a conventional way), that makes sense if taken in Consideration comfort.

Edited by ansube
Link to comment
Share on other sites

I think this mod has broken my editor.

Now whenever I click to post a reply it automatically has <p></p> in the box, but when I post it disappears.

But what I've also noticed is everything goes on one line. Like if I copy and paste this post into my forum, it ends up like this:

m0ddN6C.png

and then when I click edit post it displays html, like this:

nTrH7yO.png

even though I've disabled 'can post html' on all usergroups.

2GrB76w.png

This is my config file at the moment (edited the numbers):

/*
 Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
 For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.editorConfig=function(a){a.toolbarGroups=[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard","undo"]},{name:"editing",groups:["find","selection","spellchecker"]},{name:"forms"},{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"paragraph",groups:["list","indent","blocks","align","bidi"]},{name:"links"},{name:"insert"},{name:"styles"},{name:"colors"},{name:"tools"},{name:"others"},{name:"about"}];a.removeButtons="Cut,Copy,Paste,Undo,Redo,Anchor,Underline,Strike,Subscript,Superscript";
a.removeDialogTabs="link:advanced"};
CKEDITOR.editorConfig = function( config ) {
    config.extraPlugins = 'imgur';
    config.imgurClientId = 'c0086760e096c85';
    config.imgurClientSecret = 'b33c97a9fd8e4a98b59c18b00c45826a5d7f88c1';
};

Please can you help me fix my editor? Even if I can't have the imgur plugin working tbh, I just want it so it stops displaying html and recognises new lines.

and here's to show when I click in the editor it already has the html for paragraph in the reply box:

vEr6hjd.png

:(

Would appreciate a fix.

Edited by Little Monsters
Link to comment
Share on other sites

16 hours ago, Little Monsters said:

I think this mod has broken my editor.

Now whenever I click to post a reply it automatically has <p></p> in the box, but when I post it disappears.

But what I've also noticed is everything goes on one line. Like if I copy and paste this post into my forum, it ends up like this:

m0ddN6C.png

and then when I click edit post it displays html, like this:

nTrH7yO.png

even though I've disabled 'can post html' on all usergroups.

2GrB76w.png

This is my config file at the moment (edited the numbers):


/*
 Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
 For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.editorConfig=function(a){a.toolbarGroups=[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard","undo"]},{name:"editing",groups:["find","selection","spellchecker"]},{name:"forms"},{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"paragraph",groups:["list","indent","blocks","align","bidi"]},{name:"links"},{name:"insert"},{name:"styles"},{name:"colors"},{name:"tools"},{name:"others"},{name:"about"}];a.removeButtons="Cut,Copy,Paste,Undo,Redo,Anchor,Underline,Strike,Subscript,Superscript";
a.removeDialogTabs="link:advanced"};
CKEDITOR.editorConfig = function( config ) {
    config.extraPlugins = 'imgur';
    config.imgurClientId = 'c0086760e096c85';
    config.imgurClientSecret = 'b33c97a9fd8e4a98b59c18b00c45826a5d7f88c1';
};

Please can you help me fix my editor? Even if I can't have the imgur plugin working tbh, I just want it so it stops displaying html and recognises new lines.

and here's to show when I click in the editor it already has the html for paragraph in the reply box:

vEr6hjd.png

:(

Would appreciate a fix.

Why would the plugin even cause this? doesn't make sense.

Upload the default config from your ips installation folder.

Link to comment
Share on other sites

  • 4 weeks later...
  • 4 months later...

I added this code to my ipb 4.2 setup. I got it fixed so it no longer display the error message to add the clent id in the config.js so I am assuming its correctly configured. However when I click the button and select a image nothing happens. it does not upload the image. anyone know how to fix this or debugg this?

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...