# Radiant 0.6.6 - WYMeditor not working

**URL:** <https://www.ruby-forum.com/t/radiant-0-6-6-wymeditor-not-working/135413>\
**Category:** Radiant CMS\
**Created:** [April 22, 2008, 12:03am UTC](https://www.ruby-forum.com/t/radiant-0-6-6-wymeditor-not-working/135413 "2008-04-22T00:03:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpitman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9adbd/32.png) [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Post date:** [April 22, 2008, 12:03am UTC](https://www.ruby-forum.com/t/radiant-0-6-6-wymeditor-not-working/135413/1 "2008-04-22T00:03:20Z")

</div>

Is anyone else having trouble with Radiant 0.6.6 and WYMeditor? I’m  
getting JavaScript errors on page load that are preventing the WYMeditor  
Filter from loading.

My setup…

- running in development mode on 0.6.6 gem
- tested in both existing and new app (new app setup is as follows)
- environment.rb setup is correct:  
config.extensions = [:shards, :wym\_editor\_filter, :all]
- :all = the default Archive, Markdown, Textile
- Shards is fresh from the SVN repository tag 0.6.6
- WYMeditor is fresh from  
[SumoCoders, geeks coding with body](http://www.gorilla-webdesign.be/artikel/48-WYM+on+Radiant)

Firebug says…

prototype.js (line 3484)  
element has no properties  
var method = element.tagName.toLowerCase();

Anybody else seeing this?

- Dave

---

<div class="post-metadata">

**Author:** ![dpitman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9adbd/32.png) [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Post date:** [April 22, 2008, 5:18am UTC](https://www.ruby-forum.com/t/radiant-0-6-6-wymeditor-not-working/135413/2 "2008-04-22T05:18:07Z")

</div>

Hi David,

David P. wrote:

> Firebug says…
> 
> prototype.js (line 3484)  
> element has no properties  
> var method = element.tagName.toLowerCase();
> 
> Anybody else seeing this?
> 
> - Dave

I am getting the same. See the comments at the bottom of the maintainers  
post - [SumoCoders, geeks coding with body](http://gorilla-webdesign.be/artikel/48-WYM+on+Radiant).

Cheers,  
Mark

---

<div class="post-metadata">

**Author:** ![dpitman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9adbd/32.png) [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Post date:** [April 22, 2008, 6:37pm UTC](https://www.ruby-forum.com/t/radiant-0-6-6-wymeditor-not-working/135413/3 "2008-04-22T18:37:00Z")

</div>

Mark G. wrote:

> I am getting the same. See the comments at the bottom of the maintainers  
> post - [SumoCoders, geeks coding with body](http://gorilla-webdesign.be/artikel/48-WYM+on+Radiant).

It looks like the issue is 0.6.6 is outputting filter select tags with  
id=“part\_0\_filter\_id” while WYMeditor is looking for the old style of  
id=“part[0][filter\_id]”. I’ve fixed this for Pages and am working on  
Snippets. I’ll paste the necessary code changes as a pastie when I’m  
done.

- David

---

<div class="post-metadata">

**Author:** ![dpitman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9adbd/32.png) [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Post date:** [April 22, 2008, 7:14pm UTC](https://www.ruby-forum.com/t/radiant-0-6-6-wymeditor-not-working/135413/4 "2008-04-22T19:14:28Z")

</div>

David P. wrote:

> It looks like the issue is 0.6.6 is outputting filter select tags with  
> id=“part\_0\_filter\_id” while WYMeditor is looking for the old style of  
> id=“part[0][filter\_id]”. I’ve fixed this for Pages and am working on  
> Snippets. I’ll paste the necessary code changes as a pastie when I’m  
> done.

It looks like fixing Snippets compatibility with WYMeditor is a bigger  
issue, so I need to leave that alone for now, sorry.

Here are the code fixes to get WYMeditor back up and editing Pages:

[http://pastie.caboo.se/184897](http://pastie.caboo.se/184897)  
[http://pastie.caboo.se/184899](http://pastie.caboo.se/184899)

- David

---

<div class="post-metadata">

**Author:** ![dpitman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9adbd/32.png) [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Post date:** [April 23, 2008, 5:22am UTC](https://www.ruby-forum.com/t/radiant-0-6-6-wymeditor-not-working/135413/5 "2008-04-23T05:22:23Z")

</div>

Hi David,

David P. wrote:

> [Parked at Loopia](http://pastie.caboo.se/184897)  
> [Parked at Loopia](http://pastie.caboo.se/184899)
> 
> - David

Thanks for the updates. They don’t seem to be working yet but I will  
need to double check my changes.

Also, you are still using .rhtml. I thought that as Radiant 0.6.6 used  
Rails 2 that you would need to use .html.erb.

Cheers,  
Mark

---

<div class="post-metadata">

**Author:** ![dpitman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9adbd/32.png) [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Post date:** [April 23, 2008, 1:24pm UTC](https://www.ruby-forum.com/t/radiant-0-6-6-wymeditor-not-working/135413/6 "2008-04-23T13:24:25Z")

</div>

Mark G. wrote:

> Thanks for the updates. They don’t seem to be working yet but I will  
> need to double check my changes.
> 
> Also, you are still using .rhtml. I thought that as Radiant 0.6.6 used  
> Rails 2 that you would need to use .html.erb.

I grabbed the newest version of WYMeditor and the 0.6.6 tag SVN  
repository version of Shards. Maybe you are using an older version of  
one or the other? Also, the second pastie can either go in the extension  
before the rake task, or in the app’s public directory after the rake  
task.

I believe Rails 2 allows for .rhtml for backwards-compatibility, but  
.html.erb is the preferred method going forward.

- David

---

<div class="post-metadata">

**Author:** ![dpitman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9adbd/32.png) [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Post date:** [May 8, 2008, 8:50pm UTC](https://www.ruby-forum.com/t/radiant-0-6-6-wymeditor-not-working/135413/7 "2008-05-08T20:50:27Z")

</div>

David P. wrote:

> It looks like fixing Snippets compatibility with WYMeditor is a bigger  
> issue, so I need to leave that alone for now, sorry.

Tim Blair has handled fixing Snippets in WYMeditor. Check out the  
following for his patch:

[http://gorilla-webdesign.be/artikel/48-WYM+on+Radiant](http://gorilla-webdesign.be/artikel/48-WYM+on+Radiant)  
[http://pastie.caboo.se/186091](http://pastie.caboo.se/186091)

- Dave

---

<div class="post-metadata">

**Author:** ![dpitman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9adbd/32.png) [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Post date:** [May 10, 2008, 6:51pm UTC](https://www.ruby-forum.com/t/radiant-0-6-6-wymeditor-not-working/135413/8 "2008-05-10T18:51:10Z")

</div>

Hi,

I updated the extension with David and Tim’s patches. The extension is  
now also hosted on github; [http://github.com/jomz/wymeditor-for-radiant](http://github.com/jomz/wymeditor-for-radiant)

do let me know if you encounter any problems with it.

Regards,

Benny

---

<div class="post-metadata">

**Author:** ![dpitman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9adbd/32.png) [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Post date:** [May 16, 2008, 5:42pm UTC](https://www.ruby-forum.com/t/radiant-0-6-6-wymeditor-not-working/135413/9 "2008-05-16T17:42:48Z")

</div>

Benny D. wrote:

> I updated the extension with David and Tim’s patches. The extension is  
> now also hosted on github; [http://github.com/jomz/wymeditor-for-radiant](http://github.com/jomz/wymeditor-for-radiant)

Thanks Benny!

- Dave
