lucas Posted May 4, 2013 Share Posted May 4, 2013 Hi guys, How can I insert images from URLs? I'm making a site where I'll have to use images from the original source, so I won't be able to upload them on my server... Is there something I can change in TinyMCE/PW config files to allow this? Or maybe I'm missing something? Many thanks, Lucas Link to comment Share on other sites More sharing options...
kongondo Posted May 4, 2013 Share Posted May 4, 2013 You mean you want to grab those images and browse/display them in the backend/Admin? Link to comment Share on other sites More sharing options...
lucas Posted May 4, 2013 Author Share Posted May 4, 2013 Frontend. The thing is the client won't be able to upload images on his own server, it has to use images from the original source for copyright issues. Like in WordPress, when we want to insert an image we have the option to upload the image on our server or insert directly from an URL... Most WYSIWYG editors have this option, but I don't see it in ProcessWire editor... See the Redactor example: http://d.pr/i/CvrB This is what I'm looking for Link to comment Share on other sites More sharing options...
kongondo Posted May 4, 2013 Share Posted May 4, 2013 Aah, I get you. Hmm..,sorry I can't help with this one Link to comment Share on other sites More sharing options...
diogo Posted May 4, 2013 Share Posted May 4, 2013 In TinyMce the normal image behavior is being replaced by the PWImage plugin. It's not difficult to unload the it in the plugin itself, but because it's in the core, I wouldn't advise you to do that. In the CKEditor module it's very easy to do this without touching the module, if you don't mind switching to it, here is how you do it: Go to the field settings, choose CKEditor as the inputfield type, and in the INPUT tab, and inside "CKEditor Settings" go to "CKEditor toolbar" and replace "PWImage" for simply "Image", then go to "remove plugins" and remove "Image" from the list. -- Edit: If you still prefer to use tinyMce, go to the file /wire/modules/Inputfield/InputfieldTinyMCE/InputfieldTinyMCE.js, and remove 'pwimage' from the InputfieldTinyMCEPlugins array in line 96. Beware that this file will be replaced in any upgrade. 2 Link to comment Share on other sites More sharing options...
lucas Posted May 5, 2013 Author Share Posted May 5, 2013 Hi diogo, thanks for the pointers! Is it possible to keep both? In case I need to upload some image on my server? Link to comment Share on other sites More sharing options...
diogo Posted May 5, 2013 Share Posted May 5, 2013 In CKEditor just add he Image button without removing the PWImage button. Link to comment Share on other sites More sharing options...
lucas Posted May 5, 2013 Author Share Posted May 5, 2013 I'll do that, thanks! Link to comment Share on other sites More sharing options...
diogo Posted May 5, 2013 Share Posted May 5, 2013 I didn't know this, but in CKEditor you can also paste the image. Just tried it, and worked 3 Link to comment Share on other sites More sharing options...
kongondo Posted May 5, 2013 Share Posted May 5, 2013 Cool tips Diogo, thanks! Btw, If having both Image and PWimage it's probably good to use a different icon for PWImage just not to confuse the client Link to comment Share on other sites More sharing options...
lucas Posted May 5, 2013 Author Share Posted May 5, 2013 Ha, awesome!! Thanks again Diogo! @kongondo - Yep, definitely! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now