Hi

I like the look of this but have a bit of a dumb question, exactly how do you activate it?

I have installed and enabled the module, also downloaded and installed nicedit and unzipped into relevant directory as per instructions and given permissions to authenticated user. Problem being not sure where to add the function (using Garland theme on Drupal 1.6 RC2) so that it actually shows up in text fields.

I'd appreciate a pointer, my apologies for what is no doubt a dumb question!

regards
H

Comments

douggreen’s picture

In my experience, it just shows up. That's one of the advantages of this module. If you visit node/add/page, does it show up?

no_idea_yet’s picture

Sadly not, it's close but no cigar.

I do see the "show html | admin configure editor | admin remove editor" links but the actual formatting buttons don't show. Have tried configuring it to show all and just a subset of the buttons but no joy. Clicking "show html" does nothing.

I've a sneaking suspicion it's something to do with the function mentioned on the project page:

function garland_nicedit($page, $name, $enabled) {
return $enabled;
}

which I added at the bottom of the Garland template.php file.

On a bit of a steep learning curve here and not too sure how to track down what I did wrong.

douggreen’s picture

There shouldn't be any learning curve with this one. You probably configured too much. As I said above, if you just install nicedit on a fresh install, and do nothing else, it's worked for everyone else. So please try to remove the extra configuration you've done. You don't need to add the hook_nicedit function to your theme unless you plan on controlling the editor from the theme. So first, I'd remove that. You also don't need to download nicedit and install locally, at least just to test. So second, I'd remove that.

no_idea_yet’s picture

Status: Active » Closed (fixed)

Doug, spot on there, deleted the function and the nicedit directory and the formatting buttons now show up. Trying to run before I can walk there I guess!

Taking the time to point me in the right direction is very much appreciated :)

Time to have a play with it and see if it will meet our requirements!

Thanks again
H

martony’s picture

Version: 6.x-1.x-dev » 5.x-1.x-dev

I have installed nicEdit in a drupal 5.x as a module and configured the permissions in a working setup site with existing pages. As you mentioned I haven't inserted the function line in the theme template.inc. Submitted and saved the installation. Logged out and in again. Nevertheless I only get in the edit view of every page installed only:

show html | admin configure editor | admin remove editor

What do I do wrong? I am new in the working of drupal with a basic knowledge of html and php.
For the 5.x version do I need to insert the function line and if so in which program and where in the program ?

Many thanks in advance for your help

denny_eapen’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev
Status: Closed (fixed) » Active

My drupal installation is 6.1. I tried to install nicedit-6.x-1.x-dev and it is not working. I have the same problem as Martony.

jaimerod’s picture

Martony and denny_eapen:
Remove the NicEditor directory as this seems to be causing problems. I had the same problem and this fixed it for me. Give it a try!
or see My Fix

vogelor’s picture

if you have your "own" template, be sure, you add

print $closure

at the end of your template, before the end of the body.

after this change, everything works fine for me!

Olli