We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LG TinyMCE: custom field content not displayed

Development and Programming

FullCreamMilkMan's avatar
FullCreamMilkMan
67 posts
about 17 years ago
FullCreamMilkMan's avatar FullCreamMilkMan

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.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
about 17 years ago
Leevi Graham's avatar Leevi Graham

Are you getting any javascript errors on the publish page?

       
FullCreamMilkMan's avatar
FullCreamMilkMan
67 posts
about 17 years ago
FullCreamMilkMan's avatar FullCreamMilkMan

Hi Leevi,

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

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
about 17 years ago
Leevi Graham's avatar Leevi Graham

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

       
FullCreamMilkMan's avatar
FullCreamMilkMan
67 posts
about 17 years ago
FullCreamMilkMan's avatar FullCreamMilkMan

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

       
FullCreamMilkMan's avatar
FullCreamMilkMan
67 posts
about 17 years ago
FullCreamMilkMan's avatar FullCreamMilkMan

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 :(

       
bkuberek's avatar
bkuberek
124 posts
16 years ago
bkuberek's avatar bkuberek

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”.

       
bkuberek's avatar
bkuberek
124 posts
16 years ago
bkuberek's avatar bkuberek

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

great extension. thanks a lot.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

Glad I could help 😊

       
Hinterlands's avatar
Hinterlands
12 posts
16 years ago
Hinterlands's avatar Hinterlands

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

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.