Results 1 to 10 of 40

Hybrid View

  1. #1
    Join Date
    Mar 2004
    Location
    Fort Collins, CO :: Play Hockey eh?!
    Posts
    64
    Plugin Contributions
    0

    Default Re: Using TinyMCE Editor with Zen Cart

    Your host is probably running PHP under phpsuexec
    The resized files being created by TinyMce ibrowser were being created under my username with permission 600. Since Apache runs as user "nobody", it could not access these files.

    One would have to edit the upload script to add a chmod 644 directive. Unfortunately I have not figured out where or what to add exactly...

    Quote Originally Posted by Rami View Post
    Thank for Your answer but I have changed those mode 777 as well... I'm starting to be littlebit desperate with issue... Is it possible that server causes this kind of problem?

  2. #2
    Join Date
    Oct 2004
    Location
    Houston, TX
    Posts
    782
    Plugin Contributions
    4

    Default Re: Using TinyMCE Editor with Zen Cart

    Quote Originally Posted by flash View Post
    Your host is probably running PHP under phpsuexec
    The resized files being created by TinyMce ibrowser were being created under my username with permission 600. Since Apache runs as user "nobody", it could not access these files.

    One would have to edit the upload script to add a chmod 644 directive. Unfortunately I have not figured out where or what to add exactly...
    Does your host have a function that will reset file permissions back to the main owner's account. A lot of CPanel's have this function you just have to look for it.

  3. #3
    Join Date
    May 2005
    Location
    Brussels belgium
    Posts
    203
    Plugin Contributions
    0

    Idea or Suggestion Re: Using TinyMCE Editor with Zen Cart

    FYI

    2007-08-21 TinyMCE 2.1.2 Released

    --- Change log ---
    Added fix for polluting third partly libraries that insist on messing with internal objects.
    Added new save_on_tinymce_forms option to control when triggerSave is to be called.
    Added mceContentBody class to template plugin preview.
    Fixed bug where background color didn't work as expected in Opera.
    Fixed bug where empty p tags where created on source code edit when forced_root_block was used.
    Fixed bug where it was impossible to remove alignment using the align buttons.
    Fixed bug where a empty URL was reported as a possible email link in advlink dialog.
    Fixed bug where Opera would destroy the body if you pressed return 3 times in the beginning of a list.
    Fixed bug where getHTML would return an empty string in IE sometimes.
    Fixed bug where tinyMCE.selectedInstance is null after mceRemoveControl.
    Fixed bug where remove_script_host option didn't work with media plugin.
    Fixed bug with the convert_urls option and anchors in the advlink plugin.
    Fixed issue with missing entityDecode statement for new document confirm.
    Fixed issue with incorrect font value for Sans-serif.
    Fixed problem with some youtube video urls.



    //chris
    Zen cart or nothing !!

  4. #4
    Join Date
    Mar 2007
    Posts
    112
    Plugin Contributions
    0

    Default Re: Using TinyMCE Editor with Zen Cart

    [FONT=Verdana]Hi,[/FONT]

    [FONT=Verdana]I downloaded the Editor – TinyMCE Plugin v1.0 this morning, followed all exact instructions (twice), but have some weird problems:[/FONT]


    • [FONT=Verdana]TinyMCE does show up in the Tools -> Define Pages Editor list (along with HTMLarea and FCKeditor2.5), but when I select it, “TinyMCE” stays in the listbox for about 2 seconds, then it reverts back to “HTMLarea”. When I open a page, however, TinyMCE is indeed the editor! Any idea why the listbox doesn’t just continue to display “TinyMCE”?[/FONT]
    • [FONT=Verdana]Same thing happens when I go to Category pages – the box in top right shows all 3 editors, but when I select TinyMCE, it again displays HTMLarea after a 2-sec pause. This time, however, when I select a category to edit, the editor is HTMLarea and not TinyMCE.[/FONT]


    [FONT=Verdana]I looked through the various posts here, but they were all fairly old and none had a similar problem. And after reading them, and doing lots of experimenting, I still can’t get it to work right. Is there something I’m missing here? For instance, both HTMLarea and FCKeditor2.5 have folders in “mystore/editors”, but TinyMCE goes under “mystore/admin” instead. And there are both HTMLarea.php andFCKeditor.php files in “mystore/admin/includes” but no TinyMCE files.[/FONT]

    [FONT=Verdana]Anyway, any help you could provide here would really be appreciated![/FONT]

    [FONT=Verdana]Thanks![/FONT]
    RAB

    Why is it I'm always surprised when something actually works?

  5. #5
    Join Date
    Jul 2007
    Posts
    17
    Plugin Contributions
    0

    Default Re: Using TinyMCE Editor with Zen Cart

    Installing the new TinyMCE has me scratching my head too. I have it successfully installed (I modified it to run from editors/) but the Image Manager feature is giving me hell with "Invalid base directory:
    Notice: Use of undefined constant b - assumed 'b' in"

    But anyway, rbobzin, did you complete the instructions from the readme file?

    TinyMCE with ImageManager v1.0


    About:
    ---------------------------------------------------------------
    This is a combination of TinyMCE (with TinyMCE PHP compressor) and ImageManager third party plugin which is free. Have you experience the bad interface of textarea editor in Admin area of zencart? Originaly TinyMCE would not have image upload and image browse capabality when inserting image to document. This script will enable you to achieve that. I will not liable for this package and it comes without any warranty. Tested and worked with Zen-Cart v1.3.8a.


    Package Contents:
    ---------------------------------------------------------------
    TinyMCE version 3_0_6
    ImageManager v1.1
    TinyMCE PHP Compressor 2_0_1



    Installation Instruction:
    ---------------------------------------------------------------
    1. Extract inside /admin/ folder of the zencart, so that you will have /admin/tiny_mce

    2. Copy and insert the following javascript codes in "define_pages_editor.php" inside /admin/ folder. Probably after the other javascripts and before the "</head>".

    <!-- start of calls TinyMCE -->
    <script language="javascript" type="text/javascript" src="tiny_mce/tiny_mce.js"></script>
    <script language="javascript" type="text/javascript">
    tinyMCE.init({
    mode : "textareas",
    theme : "advanced",
    plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell ,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionali ty,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
    theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycen ter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselec t",
    theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent ,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,in sertdate,inserttime,preview,|,forecolor,backcolor",
    theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell, media,advhr,|,print,|,ltr,rtl,|,fullscreen",
    theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym, del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
    theme_advanced_toolbar_location : "top",
    theme_advanced_toolbar_align : "left",
    theme_advanced_statusbar_location : "bottom",
    theme_advanced_resizing : true,
    extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmous eout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
    template_external_list_url : "example_template_list.js",
    file_browser_callback : "fileBrowserCallBack",
    debug : false,
    relative_urls : true,
    document_base_url : "http://localhost/zencart/"
    });
    </script>
    <!-- end of calls -->

    <!-- start of calls IMAGE MANAGER for TinyMCE -->
    <script language="javascript" type="text/javascript" src="tiny_mce/plugins/ImageManager/assets/dialog.js"></script>
    <script language="javascript" type="text/javascript" src="tiny_mce/plugins/ImageManager/IMEStandalone.js"></script>
    <script language="javascript" type="text/javascript">
    var connector = "tiny_mce/plugins/ImageManager/manager.php";
    base = "G:/htdocs/zencart/images";
    path = '/zencart/images';
    </script>
    <script language="javascript" type="text/javascript" src="tiny_mce/plugins/ImageManager/tinycall.js"></script>
    <!-- end of calls -->


    3. Replace the 'document_base_url : "http://localhost/zencart/"' with your zencart site url. For example: document_base_url : "http://www.abcdefg.com/myshop/"

    4. Replace the 'base = "G:/htdocs/zencart/images";' with your images folder (this folder must be writable to upload new image file). For example: base= "/home/abcdefg/public_html/myshop/images";

    5. Replace 'path = '/zencart/images';' with your relative path to your image/upload folder. For example: path = '/myshop/images';

    6. Save the edited "define_pages_editor.php". Login to the Admin area and go to "Tools"->"Define pages editor". Repeat the process for other pages which you want to use TinyMCE.


    Optional Additional Installation Step:
    ---------------------------------------------------------------
    If you want to utilize the TinyMCE compressor you can follow the steps which available at this site: http://wiki.moxiecode.com/index.php/...Compressor/PHP

    Personally, I do not recomend this especially if you still able to view the page with tinyMCE editor within reasonable amount of time. In addition, TinyMCE will be used only in admin area which will not be accessed massively.

  6. #6
    Join Date
    Mar 2007
    Posts
    112
    Plugin Contributions
    0

    Default Re: Using TinyMCE Editor with Zen Cart

    Thanks for the quick response!

    Yes, I followed the Readme instructions to the letter. I'm now considering to install it in /editors as described in the first post in this thread, but am wondering if this is OK in Zen Cart v1.3.8a, since the posting is several years old!

    Any thoughts?
    RAB

    Why is it I'm always surprised when something actually works?

  7. #7
    Join Date
    Dec 2008
    Posts
    36
    Plugin Contributions
    0

    Default Re: Using TinyMCE Editor with Zen Cart

    sorry for bring this old thread.

    TinyMCE is now 3.2.8 version

    it has multiple image upload and i am wondering if anyone is able to port this to zencart ?

    thanks

 

 

Similar Threads

  1. Setting up styles with the tinymce editor
    By KismetDesign in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 30 Dec 2010, 06:11 PM
  2. Using Linkpoint/YourPay API module with Zen Cart Zen Cart 1.3.0.1
    By mars22 in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 23 Oct 2010, 11:57 AM
  3. TinyMCE editor does something odd with image URLs
    By kachana in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 19 Sep 2010, 07:17 AM
  4. The Define Pages Editor (HTMLarea) is that using TinyMce?
    By IllusionGuy in forum General Questions
    Replies: 2
    Last Post: 17 Jul 2007, 08:23 PM
  5. using TinyMCE as the default editor
    By knewbill in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 11 Aug 2006, 05:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg