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

Issue Getting LG TinyMCE 1.3.2 to Work in EE 1.6.4

Development and Programming

Daron Rosenberg's avatar
Daron Rosenberg
21 posts
16 years ago
Daron Rosenberg's avatar Daron Rosenberg

Hello, I’m eager to get the LG TinyMCE extension to work on my Expression Engine site but I’m having a challenging time getting it to appear within the Edit window.

I seem to get through all the installations steps fine but when I go to edit any entry TinyMCE does not appear. It looks just like it did before I installed the extension.

I followed all directions for installation of both the extension and TinyMCE from Moxie. I see LG TinyMCE (v.1.3.2) within the extensions manager and I’ve enabled it.

Within Settings for it, I’ve used the default path which is where I placed the files /scripts/tinymce/jscripts/tiny_mce/tiny_mce.js

Under Weblog Admin > Custom Weblog Fields > Default field Group > Add/Edit Custom Fields…I’ve gone into the “body” field and changed Field Group to WYSIWYG.

The only odd thing is that when I do that, for “Default Text Formatting for This Field” I am not able to change the dropdown to “None” because as soon as I changed the Field Type to WYSIWYG, the dropdown disappears and is replaced by a red line of text saying “Text formatting is not available for your chosen field type”.

I’m not sure if this is incorrect but it is the only step I’m not able to accomplish for this install.

Does anyone know what might be the issue?

       
John Fuller's avatar
John Fuller
779 posts
16 years ago
John Fuller's avatar John Fuller

Hey, I ran into the exact same issue. Did you ever fix this? An upgrade of EE maybe? 😉

       
Daron Rosenberg's avatar
Daron Rosenberg
21 posts
16 years ago
Daron Rosenberg's avatar Daron Rosenberg

I just tried doing a completely fresh install of EE 1.6.6 and a fresh install of the LG TinyMCE 1.3.2 extension plus TinyMCE 3.2.1.1 and I’m getting the same results.

For some odd reason the functionality is not appearing within the “body” field of any edit screen yet that one field has the WYSIWYG applied to it.

Is there some other setting that I’m missing?

Here’s a screenshot of my “EditField” screen…

http://www.daronrosenberg.com/ee/EditField_screen.jpg

       
John Fuller's avatar
John Fuller
779 posts
16 years ago
John Fuller's avatar John Fuller

Hm, thanks for trying that. I haven’t been able to get around to doing an upgrade yet myself.

I’m horrible at troubleshooting JS issues but sounds like some sort of conflict. You might have to contact LG for this. If you disable the extension the problem will go away. Personally, I think I’m just going to eject the extension for this particular project.

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

This is most likely a js issue.

Can you check the source code of the textarea and see what class name it has applied to it. It should be something like “lg_tinymce”

       
Daron Rosenberg's avatar
Daron Rosenberg
21 posts
16 years ago
Daron Rosenberg's avatar Daron Rosenberg

Hi Leevi, thanks for replying. I went into the edit screen and I’ve copied into this email a small chunk of the source code that you are referring to…

[size=1][removed][removed]

[removed]
    //<![CDATA[
    tinyMCE_GZ.init({/* 
          Basic Configuration
          My Favs - Simple but effective
        */
        plugins: 'safari,pagebreak,style,inlinepopups,media,contextmenu,paste,fullscreen,nonbreaking,xhtmlxtras',
        /*
          Advanced Configuration 
          All Plugins
        */
        # plugins : 'safari,pagebreak,style,layer,table,save,advhr,advimage,'
        + 'advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,'
        + 'searchreplace,print,contextmenu,paste,directionality,fullscreen,'
        + 'noneditable,visualchars,nonbreaking,xhtmlxtras,template',
        
        themes : 'advanced',
        languages : 'en',
        disk_cache : true,
        debug : false});
    //]]>
[removed]

[removed]
//<![CDATA[
    tinyMCE.init({// General
        button_tile_map : true,
        editor_selector : 'lg_mceEditor',
        mode:'textareas',
        theme : 'advanced',
        
        // Cleanup/Output
        apply_source_formatting : true,
        convert_fonts_to_spans : true,
        convert_newlines_to_brs : false,
        fix_list_elements : true,
        fix_table_elements : true,
        fix_nesting : true,
        forced_root_block : 'p',[/size]

It looks like it is being referred to but it still is not appearing within the interface.

Any thoughts?

       
John Fuller's avatar
John Fuller
779 posts
16 years ago
John Fuller's avatar John Fuller

Leevi, it’s actually different for me. The WYSIWYG works in FF but not IE.

       
Daron Rosenberg's avatar
Daron Rosenberg
21 posts
16 years ago
Daron Rosenberg's avatar Daron Rosenberg

I don’t think the issue I’m having is browser dependent. It’s not showing up for me in IE6, IE7, or FF3 on the PC and not showing up in FF3 or Safari3 on the Mac.

       
Jason Morehead's avatar
Jason Morehead
454 posts
16 years ago
Jason Morehead's avatar Jason Morehead

FWIW, this is happening to me as well. I’ve got a fairly fresh install of EE 1.6.6, and I just installed LG TinyMCE 1.3.2 and TinyMCE 3.2.1.1. I’ve set up a custom field of “WYSIWYG” type, similar to Daron’s screenshot, but when I go to the actual “Publish” form, I just get a standard textarea with none of the TinyMCE controls.

I’ve tried it in Firefox 3 and Safari 3, to no avail.

       
Daron Rosenberg's avatar
Daron Rosenberg
21 posts
16 years ago
Daron Rosenberg's avatar Daron Rosenberg

The other TinyMCE extension authored by Paul Burdick did work instantly for me.

Unfortunately it doesn’t seem to have all the other features that Leevi’s has like the ability to use the Compressor, targeting specific fields within the edit window…and I believe a hook into Moxie’s MCImageManager….so I wish I could get the LG TinyMCE Custom field extension to work.

Does anyone else have any ideas for resolving this…or ideas for how to get some of these other features to work with TinyMCE?

       
XplosiveConcepts's avatar
XplosiveConcepts
17 posts
16 years ago
XplosiveConcepts's avatar XplosiveConcepts

Daron,

I too have the same issue - I’m running EE 1.6.4 and v.1.3.2. It loads perfectly in Safari and FF on my Mac, on my PC is loads in FF, but in IE7 it does not. I have also applied the WYSIWYG type to custom fields and still no luck 😖

Ideas? suggestions?

-Evan

       
daveganley's avatar
daveganley
3 posts
16 years ago
daveganley's avatar daveganley

Are you guys using mod_rewrite?

If so it will be because you haven’t added the exclusion to the .htaccess file

Add the name of the folder tinymce is in i.e. scripts

RewriteEngine on
RewriteCond $1 !^(images|scripts|js|system|themes|index\.php|admin\.php) [NC]
RewriteRule ^(.*)$ index.php/$1 [L]

it took me a while to find it

Dave

       
Tyssen's avatar
Tyssen
756 posts
16 years ago
Tyssen's avatar Tyssen

I’ve just found out that a client using a Mac can’t see TinyMCE either in any browser. It’s fine in every browser I check in on Windows. I’m using EE 1.6.7, LG TinyMCE (v.1.3.3) and TinyMCE 3.2.0.1.

I tried the .htaccess modification that Dave suggested but there’s no change.

       
Pete Eveleigh's avatar
Pete Eveleigh
31 posts
16 years ago
Pete Eveleigh's avatar Pete Eveleigh

I just had this problem and managed to fix it. I believe that the problem is something to do with caching of the TinyMCE script. I know from working with TinyMCE within my own CMS it was caching its config settings somewhere.

Try clearing your cache and loading the publish screen again.

I’m new to EE so I might be wrong on this but as soon as I did that the TinyMCE editor loaded as it should.

Now I’ve got a problem with the image manager though :(

       
John-Gordon's avatar
John-Gordon
76 posts
16 years ago
John-Gordon's avatar John-Gordon

Has anyone figured this out? I’m having the same problem. Uploaded the extensions, languages, TinyMCE scripts, changed the field type to WYSIWYG, and I go back to my publish page and it just shows up as a plain text area.

Been trying to get it to work for almost 2 hours now. I uploaded the TinyMCE First Party Extension from Paul Burdick and it works right off the bat.

I’m using: EE v1.6.7 LG_TinyMCE 1.3.3

I’ve cleared my Control Panel Cache multiple times and nothing ever changes.

When I view the source code on the publish page, the text area I applied WYSIWYG to is getting a class of ‘lg_mceEditor’. I assume that’s correct, so I’m really not sure why the TinyMCE controls are not showing up? The only thing I can think of is an inproper path to the tiny_mce.js file.

On the initial install it shows “/scripts/tinymce/jscripts/tiny_mce/tiny_mce.js”. Does that start on the root directory of your site as it shows in the general configuration settings? (ie: http://localhost/folder/)

       
1 2

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.