TinyMCE not display...
 
Notifications
Clear all

TinyMCE not displaying in eFic 3.5

17 Posts
5 Users
0 Reactions
6,232 Views
(@azurite)
Posts: 209
Reputable Member
Topic starter
 

URL to your eFiction: http://drfa.seventh-star.net
Have you searched for your problem: yes
If so, what terms did you try: tinymce
State the nature of your problem: I just upgraded my TinyMCE because I wanted to add the functionality of changing the foreground color and background color of text. I thought of just adding the 'forecolor' and 'backcolor' words to the config, but that didn't seem to have any effect. I updated the tinyMCE that came with eFic 3.5 to the one on the TinyMCE site, which is 3.2.1.1. I also downloaded the compressor. I followed all the instructions, uploaded all the files to the right places, changed my header.php to reflect the proper filename (tiny_mce_gzip.php). When fiddling with the config file, I turned TinyMCE off sitewide and for my personal account. Nothing once I turned it back on. I tried going into PHPMyAdmin to see if the quotes had been HTML-ized; they weren't. I don't understand; can a version of TinyMCE NOT be compatible with eFic? I don't know why it's not showing up just because I updated!
Do you have a test account for us? Yes; Username: Test Account; Password: tester


Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log

 
Posted : 19/12/2008 7:02 am
(@babaca)
Posts: 722
Member Moderator
 

I'm not seeing TinyMCE when I log into your test account.

I don't know if this will do anything, but when you are logged in as Admin
Go to Settings
Click on TinyMCE settings

What I have there is:

tinyMCE.init({ mode: "textareas", theme: "advanced", language: "en", browsers: "msie, gecko, opera", plugins: "advhr, advimage, advlink, contextmenu, preview, searchreplace, paste, fullscreen", theme_advanced_buttons1 : "bold, italic, underline, strikethrough, separator, sub, sup, charmap, separator, justifyleft, justifycenter, justifyright, styleselect, formatselect, separator, bullist, numlist", theme_advanced_buttons2: "cut, copy, paste, pastetext, pasteword, separator, undo, redo, separator, link, unlink, advimage, advhr, cleanup, help, preview, code, fullscreen", theme_advanced_buttons3: "", extended_valid_elements: "a[name|href|target|title|onclick]", theme_advanced_status_location: "bottom", theme_advanced_resizing: "true", theme_advanced_path: "false" });

If that is there, try removing it and seeing it it pull tinymce up.

Or you might not have uploaded all the tinyMCE files when you upgraded it (There are tons of files involved in tinymce so it's easy to miss one of them).

barb


******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3

 
Posted : 19/12/2008 3:50 pm
(@azurite)
Posts: 209
Reputable Member
Topic starter
 

I tried the methods you suggested (and have done them before with previous eFic/TinyMCE issues), but no good. I've never seen TinyMCE displayed during all of this.
I replaced the config settings in the Settings/TinyMCE config box with what you included and saved. I went to "Add A New Story," but no TinyMCE buttons were visible, even though it's toggled on sitewide and for my personal account.
I deleted the config settings in the Settings/TinyMCE config box and saved. I went to "Add A New Story," but I had the same issue. Should I have turned off TinyMCE sitewide and/or for my account before doing this?
Also, other people have mentioned in other threads that you have to make sure TinyMCE is off for the config box, but my config box doesn't even have an option to turn TinyMCE on for it! Is that because this is a new version of eFic, or something else?

I've also uploaded all the files --at least twice-- and gone through the upload logs; I can't see anything that's missing. Should I try uploading the files en-masse, rather than uploading the whole tinymce folder?


Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log

 
Posted : 19/12/2008 3:58 pm
(@azurite)
Posts: 209
Reputable Member
Topic starter
 

Bump. I've tried uploading the files en-masse, rather than just uploading the TinyMCE, but it hasn't helped. Neither has re-downloading the TinyMCE folder and compressor and reuploading them. How can I get TinyMCE back?


Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log

 
Posted : 02/01/2009 7:41 am
(@piper)
Posts: 91
Trusted Member
 

Bump. I've tried uploading the files en-masse, rather than just uploading the TinyMCE, but it hasn't helped. Neither has re-downloading the TinyMCE folder and compressor and reuploading them. How can I get TinyMCE back?

Remove the compressor... There is a note in the TinyMCE Compressor readme about TinyMCE GZIP not working with PHP/ZLIB compression. Every time I install the compressor I loose TinyMCE... But if I link directly to tiny_mce.js  it works fine 🙂

-P/KAF


StoryPortal Fiction Network - StoryPortal.Net
TG Fiction dot NET | T* Fiction Archive - TGFiction.Net
LG Tales | TG Style Fiction for LG's - LGTales.Com

 
Posted : 26/02/2009 9:16 pm
(@azurite)
Posts: 209
Reputable Member
Topic starter
 

Yes, that worked for me! I just removed the line linking to the *.gzip file instead of the *.js file in header.php, and it restored my TinyMCE just fine. For some weird reason the style bars are at the BOTTOM of the window instead of the top, though.


Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log

 
Posted : 27/02/2009 2:46 am
(@piper)
Posts: 91
Trusted Member
 

Yes, that worked for me! I just removed the line linking to the *.gzip file instead of the *.js file in header.php, and it restored my TinyMCE just fine. For some weird reason the style bars are at the BOTTOM of the window instead of the top, though.

Despite my previous post, I didn't give up and I found a solution to make the compressor work on my box 🙂

I used info from this post https://efiction.org/forums/index.php?topic=6373.0 🙂 Using the info from the moxicode wiki, and the init that Tammy provided, I managed to figure out I was putting the 2nd init in the WRONG place 🙂

What you want to do is change:

 echo "<script language="javascript" type="text/javascript" src="""._BASEDIR."tinymce/jscripts/tiny_mce/tiny_mce.js"></script>[/code"]

To this:
 echo "<script language="javascript" type="text/javascript" src="""._BASEDIR."tinymce/jscripts/tiny_mce/tiny_mce_gzip.js"></script>[/code"]

and change:
                echo "
        tinyMCE.init({
                theme: 'advanced',
                height: '250',
                language: '$language',
                convert_urls: 'false',
                mode: 'textareas',
                extended_valid_elements: 'a[name|href|target|title]',
                plugins: 'advhr,advimage,advlink,searchreplace,contextmenu,preview,fullscreen,paste".($current == "adminarea" ? ",codeprotect" : "")."',
                theme_advanced_buttons1_add: 'fontsizeselect',
                theme_advanced_buttons2_add: 'separator,pasteword,pastetext',
                theme_advanced_buttons3_add_before: 'tablecontrols,separator',
                theme_advanced_buttons3_add: 'advhr',
                theme_advanced_toolbar_align: 'center',
                theme_advanced_statusbar_location: 'bottom',
                theme_advanced_path: 'false',
                editor_deselector: 'mceNoEditor',
";
                if(USERUID)
                        echo "          external_image_list_url : '".STORIESPATH."/".USERUID."/images/imagelist.js',";
                echo "
                theme_advanced_resizing: true,".($current == "adminarea" ? "nttentity_encoding: 'raw'" : "nttinvalid_elements: 'script,object,applet,iframe'")."
  });
";

to this:

 echo "
tinyMCE_GZ.init({
        plugins : 'advhr,advimage,advlink,searchreplace,contextmenu,preview,fullscreen,paste".($current == "adminarea" ? ",codeprotect" : "")."',
        themes : 'advanced',
        languages : '$language',
        disk_cache : true,
        debug : false
});

                echo "
        tinyMCE.init({
                theme: 'advanced',
                height: '250',
                language: '$language',
                convert_urls: 'false',
                mode: 'textareas',
                extended_valid_elements: 'a[name|href|target|title]',
                plugins: 'advhr,advimage,advlink,searchreplace,contextmenu,preview,fullscreen,paste".($current == "adminarea" ? ",codeprotect" : "")."',
                theme_advanced_buttons1_add: 'fontsizeselect',
                theme_advanced_buttons2_add: 'separator,pasteword,pastetext',
                theme_advanced_buttons3_add_before: 'tablecontrols,separator',
                theme_advanced_buttons3_add: 'advhr',
                theme_advanced_toolbar_align: 'center',
                theme_advanced_statusbar_location: 'bottom',
                theme_advanced_path: 'false',
                editor_deselector: 'mceNoEditor',
";
                if(USERUID)
                        echo "          external_image_list_url : '".STORIESPATH."/".USERUID."/images/imagelist.js',";
                echo "
                theme_advanced_resizing: true,".($current == "adminarea" ? "nttentity_encoding: 'raw'" : "nttinvalid_elements: 'script,object,applet,iframe'")."
  });
";
;

Or atleast that's what worked for me! YMMV!

-HuGgLeS-
-P/KAF


StoryPortal Fiction Network - StoryPortal.Net
TG Fiction dot NET | T* Fiction Archive - TGFiction.Net
LG Tales | TG Style Fiction for LG's - LGTales.Com

 
Posted : 28/02/2009 12:58 am
(@azurite)
Posts: 209
Reputable Member
Topic starter
 

I was on the verge of trying Piper's solution, because in 3.5.1, my TinyMCE disappeared again even though I'm not using the compressor anymore. I upgraded my TinyMCE (to 3.2.4.1), but I made sure that the header.php file was pointing to the non-compressed version. However, after header.php and a few other files got updated in the SVN a few days ago, TinyMCE is back...in some places! When I go to "Add a New News Item," it displays, but when I go to modify a story I've submitted (both times I'm logged in under my admin account), it doesn't. Also, it still displaying at the bottom of the textarea box, not the top as I think it should be (and as it did before)!

I went to my domain's error log and found this:

File does not exist: /home/**/public_html/drfa/tinymce/jscripts/tiny_mce/plugins/codeprotect, referer: http://drfa.seventh-star.net/admin.php?action=messages&message=tinyMCE
File does not exist: /home/
**/public_html/drfa/tinymce/jscripts/tiny_mce/plugins/codeprotect, referer: http://drfa.seventh-star.net/admin.php?action=settings
File does not exist: /home/**/public_html/drfa/tinymce/jscripts/tiny_mce/plugins/codeprotect, referer: http://drfa.seventh-star.net/admin.php?action=news&form=new
File does not exist: /home/
**/public_html/drfa/tinymce/jscripts/tiny_mce/plugins/codeprotect, referer: http://drfa.seventh-star.net/admin.php?action=news
File does not exist: /home/**/public_html/drfa/tinymce/jscripts/tiny_mce/plugins/codeprotect, referer: http://drfa.seventh-star.net/admin.php
File does not exist: /home/
**/public_html/drfa/tinymce/jscripts/tiny_mce/plugins/codeprotect, referer: http://drfa.seventh-star.net/admin.php?action=versioncheck

What I find interesting about this is that some of these pages don't even use TinyMCE input--like the version check page. There's not even an input area! And the ones that it IS mentioning that DO have an input area are ones where TinyMCE is displaying--no mention whatsoever of the other pages where it should be.

As for this codeprotect, I've never heard of it until today. It appears to be a third-party plugin for TinyMCE, but not one I've downloaded, nor one that appears to be bundled with the latest version of TinyMCE.  I don't know where these calls for codeprotect are coming from. I wonder if the TinyMCE not displaying and my code-mangling bugs are related though, as it seems as though a codeprotect plugin MIGHT solve the weird displaying of HTML special characters...except they display just fine and TinyMCE itself doesn't. Help?


Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log

 
Posted : 28/06/2009 3:16 pm
(@piper)
Posts: 91
Trusted Member
 

Have you tried going to "Account Info" then "Edit Prefrences" then make sure "Use tinyMCE WYSIWYG Editor" is checked?

It sounds like you are getting tinyMCE on all the pages that aren't affected by this option but are NOT getting tinyMCE on the pages these seetings affect. Maybe the setting got changed during the upgrade?

-HuGgLeS-
-P/KAF


StoryPortal Fiction Network - StoryPortal.Net
TG Fiction dot NET | T* Fiction Archive - TGFiction.Net
LG Tales | TG Style Fiction for LG's - LGTales.Com

 
Posted : 26/07/2009 8:28 am
(@aquaanimus)
Posts: 82
Trusted Member
 

Sorry for butting in,  I just wanted to say thanks for that last tip.  The TinyMCE was not showing on my admin account, and I thought that was just the way it was...as it shows for my reg test account.  But now I know I had to check that, and it shows for my admin account as well.  <G>


"Quoth the raven, `Nevermore.'"  - EAP

 
Posted : 26/07/2009 12:16 pm
(@azurite)
Posts: 209
Reputable Member
Topic starter
 

Yeah, I checked to make sure it was checked (it was) in my personal/Admin account, and re-submitted it just to be sure. I'm not sure what browser I was using in my last reply, but now, in Safari 4, TinyMCE is not showing up when I go to add a new News item, a new story, edit an existing story...there are probably other places where TinyMCE should show up and may be (or isn't), but those are the main ones I can think of.


Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log

 
Posted : 26/07/2009 5:57 pm
(@piper)
Posts: 91
Trusted Member
 

Sorry for butting in,  I just wanted to say thanks for that last tip.  The TinyMCE was not showing on my admin account, and I thought that was just the way it was...as it shows for my reg test account.  But now I know I had to check that, and it shows for my admin account as well.  <G>

Glad it helped you!
-Hugs-
-P/KAF


StoryPortal Fiction Network - StoryPortal.Net
TG Fiction dot NET | T* Fiction Archive - TGFiction.Net
LG Tales | TG Style Fiction for LG's - LGTales.Com

 
Posted : 27/07/2009 9:44 pm
(@azurite)
Posts: 209
Reputable Member
Topic starter
 

An interesting update: my error log isn't showing any eFic/TinyMCE-related files as missing anymore, but when I went to edit a chapter, I unticked the box for Display TinyMCE (even though it wasn't displaying in the first place). Suddenly, it appeared! This is very backwards behavior, and I can't think of why it would do this, but...it's a start?


Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log

 
Posted : 28/07/2009 5:19 am
(@piper)
Posts: 91
Trusted Member
 

That seems a bit weird... but if it works, it works =giggles=

:mrgreen:

-P/KAF


StoryPortal Fiction Network - StoryPortal.Net
TG Fiction dot NET | T* Fiction Archive - TGFiction.Net
LG Tales | TG Style Fiction for LG's - LGTales.Com

 
Posted : 28/07/2009 12:12 pm
(@aquaanimus)
Posts: 82
Trusted Member
 

An interesting update: my error log isn't showing any eFic/TinyMCE-related files as missing anymore, but when I went to edit a chapter, I unticked the box for Display TinyMCE (even though it wasn't displaying in the first place). Suddenly, it appeared! This is very backwards behavior, and I can't think of why it would do this, but...it's a start?

Probably unrelated...but I noticed that the tinyMCE editor sometimes has other backwards behavior. For example... putting on images. I found that if the editor is on, the image will not show correctly. YET, if I go back in to the story by editing, there the image will be - showing in the tinyMCE editor. Then I click submit again.... and walah... The image shows up like it is supposed too. Weird huh?


"Quoth the raven, `Nevermore.'"  - EAP

 
Posted : 28/07/2009 3:55 pm
Page 1 / 2
Share: