Hello,

I've been trying for almost 2 days to run Ckeditor, following the page instructions (https://www.drupal.org/project/ckeditor), even applying the 3 lines patch (issues at https://www.drupal.org/project/issues/ckeditor?categories=1), manually in the editor where I added those lines in the ckeditor.features.inc but still the Ckeditor editor doesn't even load :-(

When I click - Add content -> Article (or Basic page, doesn't matter), instead classic interface, as you all know when adding a page, I just get almost empty page with just text links:
You are here, Add page, Add contact.
Simply all empty white page, no other environment around.

My imagination is going over, I don't know why installing and usage of Ckeditor "cannot" be as simple as is the philosophy in Linux, e.g. Debian: one things makes one task and does it well.

Ok, what I (and I am sure also an everyday user) want:
I'd like wysiwyg editor in Drupal 7.41 where will be all features like:
a, p, span, h1 - h6, img, map, area, hr, br, ul, ol, li, dl, dt, dd, table, em, strong, u, i, del, s, ins, sub, sup, quote, blockquote, pre, address, code, cite, embed, object, abbr etc.
and also aligning to block, selecting picture - setting even by an URL and/or selecting from local comp or local Drupal site directory and ability to use Smiley module as well.

I've tested modules WYSIWYG and installed Openwysiwyg editor (http://www.openwebware.com) which worked fine except local image selection (just settings by external URL).

Can someone help me or guide (step by step) how to make Ckeditor working - or -
offer me an alternative wysiwyg working editor with above mentioned features and functions, please ?
I use Linux Debian, LAMP - Bitnami (https://bitnami.com/stacks), btw, so it's local testing (my typical url looks like:
http://127.0.0.1:8080/test02).
Before I've installed Ckeditor module, everything worked.
Now site works till the moment when I click on - Add content... :-((

Btw, how you realized the new article adding ?
As for me, I could use classic usage, without Ckeditor module and typing all those Html5 mark-up, although I'm not sure how I'd place a smiley icon/pic (if I don't want call it from external url something.com/smile01.gif etc.) but I want an wysiwyg editor for those users who don't know the Html5 mark-up.

If everything works fine in Drupal 8, okay, that's surely great but now I am and will be any time use Drupal 7 yet.

Thanks in advance for simple (if possible :)) answer for simple question - working wysiwyg editor with various (above mentioned) features.

P.S. As for php, I am "middle" :) newbie, also as for Drupal (it means I'm not fully dumb but not skilled yet. So no worries you have to learn me hard, I learn quickly :-))

Comments

John Morahan’s picture

I've had success using the 7.x-2.x-dev version of the WYSIWYG module with version 4.5.1 of the CKEditor library. Once the module and library are installed you need to enable the editor for each text format you intend to use with it. Make sure the HTML tags you enable in the editor are also enabled in the text format settings. For uploading images I use IMCE and IMCE Wysiwyg bridge to add file upload functionality to the insert image dialog.

Elis@_forlgbtkampene’s picture

Thank you very much for your tip, Johnie :-)
I see a progress in this issue:

I've done all as you described and the ckeditor loads with all buttons, even with smiley buttons.
But I have to add a snippet, as described here:

https://www.drupal.org/node/2225269

Because the ckeditor appears in the filtered mode (which is default), when I switch to 'full Html' mode, the ckeditor tool-bar disappears :-(

Btw, could you kick me forward a bit, where exactly I have to paste that snippet, pls ? ;)
Thanks.

And I have yet another question:
when I'm creating e.g. an article, I place a smiley and make some text colored, the smiley and the text is not colored nor in preview neither in the site after saving and publishing it :-(
The smiley, not the extra one but the 'classic one' appears in the text area however, but after saving or when previewing, smilies aren't showed and the text is just 'strong' (if I set any text to be strong) but not colored (if I set any text to be colored).

Is this also closed to the mentioned php snippet so it will work then or I have to set something else yet ?

Thank you very much for your guide in advance! ;-)

Elizee

John Morahan’s picture

I think that issue may be describing a different problem to the one you're experiencing - unless you're already using a custom ckeditor.styles.js? (if you are, I have no experience with that, sorry)

but it sounds to me like you may simply have forgotten to enable CKEditor for the Full HTML format. Remember you need to enable it for each format separately.

As for the problem of text not being coloured: this is probably due to your filter configuration. For yourself and any other trusted admins of the site, the simple solution is to use Full HTML (after you've enabled the wysiwyg for it). If you want normal users to have this functionality too, you may have to replace the default HTML filter with one that supports style attributes, such as WYSIWYG Filter or HTML Purifier. Important: resist the temptation to allow normal users to use Full HTML, as that would open up a security hole.

Elis@_forlgbtkampene’s picture

Thanks again for tip :) - I had to re-check all settings and make all those checkboxes review :)
Now already everything works, the only "issue" I cannot solve is - local images placing to the text area.

I have 2 choices to place an image:

1. the native of the ckeditor and the other is the media browser (media library module).
The native place me only the external URL imgs. When I browse local directory, I can see those pictures but cannot set them.
That "file browser" looks and seems like "read-only" or what.

I have also IMCE module, there shouldn't be any problem in the settings.

The other choice by medialibrary when a new overlay appears, I can load an image from my comp, clicking on 'next', 'next' and finally click on 'Save', the new overlay remain empty - white, the overlay doesn't disappear, there only "X" in the right upper corner remains which is good just for closing the overlay but in the textarea no image is chosen :-(

Even the external URL doesn't work by the media library module.

Can you once again kick me forward where could be the problem, please ? ;-)

Thanks again for your help and patience :)

John Morahan’s picture

Did you install both IMCE and IMCE Wysiwyg bridge?
Did you enable the IMCE checkbox in the WYSIWYG settings?

Elis@_forlgbtkampene’s picture

Yep, I did all.

Elis@_forlgbtkampene’s picture

A little addition:

I tried add new pics to smiley folder (.../all/modules/smiley/packs/) and imported them in smiley module settings.
It's possible to add the new picture through smiley button in the ckeditor tool-bar.
But it doesn't solve all cases when you wanna set other images settings, like alt and title text or caption etc.

Btw, in Content admin menu where is listed the whole content when clicking on the 'Files' card/tab in the right upper corner, I can see all images added through the mentioned Media library/media browser.
But if I click on "edit" link next to an image, internet browser (I use Iceweasel what is alter ego for Firefox in Debian OS) freezes/stops with empty page at url like:

http://127.0.0.1:8080/test02/cs/file/11/edit?destination=admin%2Fcontent...

When I click on a picture directly, the url where browser stops (with empty page) is like:

http://127.0.0.1:8080/test02/cs/file/11#overlay-context=cs/node/20

I don't know how much this matters or if it might be helpful what I have set wrong :-|

Thanks for any tip or guide.

Elis@_forlgbtkampene’s picture

As I described that even the IMCE filebrowser opens in a new window but I cannot select a file, I've checked the demo page to know how it should look like.
Demo:
http://ufku.com/drupal/imce/demo

In fact, in the new opened window I don't have any buttons in the top light-blue bar (as they should appear there like seen in the demo page).
That's why I cannot make an operation of inserting a file :O

Is this issue close to IMCE module ?

P.S. I've uploaded my screenshot with the file-browser window with missing all buttons like upload, resize or insert buttons which you can see in the demo page.

Screen:
=> http://s13.postimg.org/4v48ulclj/imce_without_buttons.jpg
Sorry for disturbing, I just wanna find out if the problem is with my bad settings or in IMCE/IMCE bridge :-\

John Morahan’s picture

Looks like you may be experiencing this issue: #1181070: Unable to see IMCE file browser buttons - probably due to a conflict between IMCE and your theme. You might try some of the suggestions there - for example this looks like a good solution (it makes IMCE use the admin theme). I haven't run into this issue myself though, so I haven't tried it out.

Elis@_forlgbtkampene’s picture

Thanks again Johnie for your help and direction :-)

I tried that and it works finally :D

However, while wondering all the time about this issue, I combined the advised Ckeditor version but now I installed the stable (not dev) IMCE and bridge and this combination was without any issue :O
Crazy, isn't it ?

And an hour ago, Drupal offered me an update of "wysiwyg".
So ok, I did it.
Bum !
Helvete :-(, Ckeditor not assigned, Full Html editor didn't worked :-(

Uh, oh, so I uninstalled bridge to be able to uninstall wysiwyg, deleted remaining files of the wysiwyg and started again but installed the latest dev version of wysiwyg and everything is working again :D

So, I'll stay with Drupal 7.41 with this "configuration" :D and won't change anything till I move my a$$ to Drupal 8 :D

Thanks again for help and guide! ;-)

P.S. Someone offered me another "media tool" and they said - it's cool and "hi-tech" one with many features etc. etc.
It's Scald.
I had a quick look at, it looks fine, just I'm bit confused from quit not "light" configuration due there are many options :O
I know there is a help page, e.g. here - https://www.drupal.org/node/1775718 but I am a bit lost in the mix of many settings :O
Have you tried it, is it so good as some guys sing about it ? :)