Glitch with TinyMCE plugin?
Posted: 30 July 2008 08:23 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  120
Joined  08-25-2005

I installed TinyMCE plugin on my EE install:

* php 5.2.5
* MySQL 4.1.22
* EE 1.6.0 b20070815
* LG TinyMCE extension v1.3

Installed fine, paths were fine, called the script fine (according to firebug), yet the fields in PUBLISH were coming up as regular textareas. Couldn’t figure it out for the life of me. With IE’s error console I found the problem- it was in this line of code, from the extensions settings page, in “TinyMCE Config”:

# content_css : '/themes/site_themes/default/styles/editor.css?' + new Date().getTime(),

Apparently the pound sign to comment out the line was killing the script. I changed that to // (two slashes) and it worked.

P.S. - Any idea why this would be the case?

Profile
 
 
Posted: 30 July 2008 04:01 PM   [ Ignore ]   [ # 1 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1076
Joined  01-24-2006
Meir - 30 July 2008 08:23 AM

I installed TinyMCE plugin on my EE install:

* php 5.2.5
* MySQL 4.1.22
* EE 1.6.0 b20070815
* LG TinyMCE extension v1.3

Installed fine, paths were fine, called the script fine (according to firebug), yet the fields in PUBLISH were coming up as regular textareas. Couldn’t figure it out for the life of me. With IE’s error console I found the problem- it was in this line of code, from the extensions settings page, in “TinyMCE Config”:

# content_css : '/themes/site_themes/default/styles/editor.css?' + new Date().getTime(),

Apparently the pound sign to comment out the line was killing the script. I changed that to // (two slashes) and it worked.

P.S. - Any idea why this would be the case?

I’m guessing I was in PHP mode when I added that comment! The # is not a javascript comment and would be causing a script error. I’ll update the default install now.

Thanks for picking this up smile

 Signature 

Nominate LG Addons in the Mashable Open Web Awards!


Newism - Newcastle Web Design & Development


LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator

Profile
 
 
Posted: 30 July 2008 04:14 PM   [ Ignore ]   [ # 2 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1076
Joined  01-24-2006

Ok fixed and the download has been updated to 1.3.1.

Can you mark this thread as solved?

Cheers Leevi

 Signature 

Nominate LG Addons in the Mashable Open Web Awards!


Newism - Newcastle Web Design & Development


LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator

Profile
 
 
Posted: 31 July 2008 02:44 AM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  120
Joined  08-25-2005

woohoo I’m not crazy!

thx for the fix leevi

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64503 Total Logged-in Users: 36
Total Topics: 81060 Total Anonymous Users: 12
Total Replies: 436245 Total Guests: 153
Total Posts: 517305    
Members ( View Memberlist )