LG TinyMCE: custom field content not displayed
Posted: 12 August 2008 05:23 AM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  82
Joined  06-05-2002

After setting custom fields to WYSIWYG, the content of the fields doesn’t display in the field in the Edit page. If I return them to Textareas, the content is displayed.

If I create a new WYSIWYG custom field, the field is displayed on the Edit form, content can be added and edited, but when saved, the content disappears and is not saved.

Any ideas as to what might cause this? I’m using EE 1.6.4, TinyMCE 3.1.0.1 and LG TinyMCE 1.3.1, all the latest versions, and no compression.

My LG TinyMCE config is pretty straightfoward, nothing fancy:

mode : 'textareas',
theme : 'advanced',
button_tile_map : true,
editor_selector : 'lg_mceEditor',
fix_list_elements : true,
fix_nesting : true,
relative_urls : false,
theme_advanced_blockformats : 'p,h3,h4',
theme_advanced_toolbar_location : 'top',
theme_advanced_toolbar_align : 'left',
theme_advanced_statusbar_location : 'bottom',
theme_advanced_resize_horizontal : false,
theme_advanced_resizing : true,
plugins : 'safari,inlinepopups,paste,xhtmlxtras',
theme_advanced_buttons1 : 'cut,copy,pastetext,|,formatselect,|,bold,italic,abbr,|,bullist,numlist,|,link,unlink,|,image,|,removeformat,code',
theme_advanced_buttons2 : '',
theme_advanced_buttons3 : ''

I also get the same problem when using the regular TinyMCE extension: blank TinyMCE fields, or no new content saved.

Profile
 
 
Posted: 12 August 2008 05:21 PM   [ Ignore ]   [ # 1 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1076
Joined  01-24-2006

Are you getting any javascript errors on the publish page?

 Signature 

VOTE FOR 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: 13 August 2008 01:41 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Avatar
Rank
Total Posts:  82
Joined  06-05-2002

Hi Leevi,

No JS errors as far as I can tell. All the script calls are there and the scripts included with the page.

Profile
 
 
Posted: 13 August 2008 04:57 AM   [ Ignore ]   [ # 3 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1076
Joined  01-24-2006

I’m guessing your using safari? Hows it go in other browsers?

 Signature 

VOTE FOR 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: 13 August 2008 05:05 AM   [ Ignore ]   [ # 4 ]  
Grad Student
Avatar
Rank
Total Posts:  82
Joined  06-05-2002

Actually, no. This is in Firefox 3. I’ve not checked in other browsers.

Profile
 
 
Posted: 13 August 2008 05:58 AM   [ Ignore ]   [ # 5 ]  
Grad Student
Avatar
Rank
Total Posts:  82
Joined  06-05-2002

So I remove the extension and install it again for the third time and it seems to be working… I’ll get back to you if this problem proves intermittent :(

Profile
 
 
Posted: 14 September 2008 10:33 PM   [ Ignore ]   [ # 6 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  141
Joined  11-19-2007

i get this error on Firefox 3
CP Home ›  Admin ›  Weblog Administration ›  Field Groups ›  Custom Fields

missing ; before statement
  document.getElementById(‘direction_un…d(‘file_block’).style.display = “none”;\n

this is what it looks like in the source:

1908 else if (id == 'file')
1909 {
1910 document
.getElementById('rel_block').style.display = "none";
1911 document.getElementById('select_block').style.display = "none";
1912 document.getElementById('pre_populate').style.display = "none";
1913 document.getElementById('text_block').style.display = "none";
1914 document.getElementById('textarea_block').style.display = "none";
1915 document.getElementById('date_block').style.display = "none";
1916 document.getElementById('relationship_type').style.display = "none";
1917 document.getElementById('formatting_block').style.display = "none";
1918 document.getElementById('formatting_unavailable').style.display = "block";
1919 document.getElementById('file_block').style.display = "block";
1920 }
1921
else if (id == 'wysiwyg'){
1922 document
.getElementById('date_block').style.display = 'none'
1923 document.getElementById('select_block').style.display = 'none'
1924 document.getElementById('pre_populate').style.display = 'none'
1925 document.getElementById('text_block').style.display = 'none'
1926 document.getElementById('textarea_block').style.display = 'block'
1927 document.getElementById('rel_block').style.display = 'none'
1928 document.getElementById('relationship_type').style.display = 'none'
1929 document.getElementById('formatting_block').style.display = 'block'
1930 document.getElementById('formatting_unavailable').style.display = 'none'
1931 document.getElementById('direction_available').style.display = 'none'
1932 document.getElementById('direction_unavailable').style.display = 'block' document.getElementById('file_block').style.display = "none";
1933 }

the extension works great but this error breaks the js and I can’t update all posts when changing the “Default Text Formatting for This Field”.

 Signature 

http://www.bbook.com

Profile
 
 
Posted: 14 September 2008 10:50 PM   [ Ignore ]   [ # 7 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  141
Joined  11-19-2007

I was using version 1.1.5 but it is now fixed when upgraded to version 1.3.2.

great extension. thanks a lot.

 Signature 

http://www.bbook.com

Profile
 
 
Posted: 15 September 2008 02:32 AM   [ Ignore ]   [ # 8 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1076
Joined  01-24-2006

Glad I could help smile

 Signature 

VOTE FOR 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: 09 November 2008 07:51 PM   [ Ignore ]   [ # 9 ]  
Summer Student
Total Posts:  8
Joined  06-22-2008

This page should be updated—http://expressionengine.com/downloads/details/lg_tinymce_custom_field/

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: 64937 Total Logged-in Users: 68
Total Topics: 81906 Total Anonymous Users: 36
Total Replies: 440297 Total Guests: 311
Total Posts: 522203    
Members ( View Memberlist )