Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2005
    Posts
    66
    Plugin Contributions
    0

    Default How to activate the HTML Editor in News Manager?

    I have been pulling my hair out (the little that is left!) trying to get the HTML Editor to work with the News Manager (note that the normal dropdown menu for "None" and "HTMLArea" does not appear in this module). No matter what I do, I cannot seem to get it to work, I just get the usual plain text box which requires HTML for even a line break....
    I have trawled through the forum but cannot find anything that has helped so far.
    Can anyone give me some idea of how to activate the editor? Even a hard-coded solution will suit me - i.e. always use HTML Editor when compiling news items.
    TIA

  2. #2
    Join Date
    Jul 2006
    Location
    SF Bay Area
    Posts
    867
    Plugin Contributions
    1

    Default Re: How to activate the HTML Editor in News Manager?

    Quote Originally Posted by ringy View Post
    I have been pulling my hair out (the little that is left!) trying to get the HTML Editor to work with the News Manager (note that the normal dropdown menu for "None" and "HTMLArea" does not appear in this module). No matter what I do, I cannot seem to get it to work, I just get the usual plain text box which requires HTML for even a line break....
    I have trawled through the forum but cannot find anything that has helped so far.
    Can anyone give me some idea of how to activate the editor? Even a hard-coded solution will suit me - i.e. always use HTML Editor when compiling news items.
    TIA
    If you wouldn't mind using the FCKeditor, I could show you how to do that...

    Never tried it with HTMLarea.

  3. #3
    Join Date
    Sep 2006
    Location
    United Kingdom
    Posts
    195
    Plugin Contributions
    0

    Default Re: How to activate the HTML Editor in News Manager?

    Quote Originally Posted by kiddo View Post
    If you wouldn't mind using the FCKeditor, I could show you how to do that...

    Never tried it with HTMLarea.
    can you please post this fix so that we all can know how to do this

    thanks

  4. #4
    Join Date
    Aug 2007
    Posts
    1
    Plugin Contributions
    0

    Default Re: How to activate the HTML Editor in News Manager?

    I have the same problem, i need to use fckeditor in news manager. Which is the solution??

    thanks

  5. #5
    Join Date
    Aug 2004
    Location
    Fountain Hills, AZ
    Posts
    515
    Plugin Contributions
    1

    Default Re: How to activate the HTML Editor in News Manager?

    Has anyone figured out how to get either the html editor or the FCKeditor to work with this mod ?

  6. #6
    Join Date
    Apr 2008
    Posts
    1
    Plugin Contributions
    0

    Default Re: How to activate the HTML Editor in News Manager?



    Problem solved! To replace the news manager text editor with FCKEditor (assuming you have the FCKEditor module installed) replace the following in admin/news_box_manage.php (I believe it's on line 296):

    Code:
    <?php echo zen_draw_textarea_field('news_content[' . $languages[$i]['id'] . ']', 'soft', '100%', '35', (isset($news_content[$languages[$i]['id']]) ? stripslashes($news_content[$languages[$i]['id']]) : zen_get_news_content($_GET['nID'], $languages[$i]['id'])),'id="ta' . $i . '"'); ?>
    with this:


    Code:
    				<?php if ($_SESSION['html_editor_preference_status']=="FCKEDITOR") {
                    $oFCKeditor = new FCKeditor('news_content[' . $languages[$i]['id'] . ']') ;
                    $oFCKeditor->Value = zen_get_news_content($_GET['nID'], $languages[$i]['id']);
                    $oFCKeditor->Width  = '700' ;
                    $oFCKeditor->Height = '500' ;
    //                $oFCKeditor->Create() ;
                    $output = $oFCKeditor->CreateHtml() ; echo $output;
    					} else { // using HTMLAREA or just raw "source"
    					echo zen_draw_textarea_field('news_content[' . $languages[$i]['id'] . ']', 'soft', '100%', '35', (isset($news_content[$languages[$i]['id']]) ? stripslashes($news_content[$languages[$i]['id']]) : zen_get_news_content($_GET['nID'], $languages[$i]['id'])),'id="ta' . $i . '"');
    					} ?>
    Basically, if you have FCKEditor working for EZ-Pages, you can snag the code from the EZ-Pages editor and use it. (Hopefully the next version of the News Manager will make this unnecessaray.)

  7. #7
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,197
    Plugin Contributions
    0

    Default Re: How to activate the HTML Editor in News Manager?

    L,
    Thanks for posting the fix. Great help to other Zenners with this same problem..

  8. #8
    Join Date
    Jun 2011
    Posts
    22
    Plugin Contributions
    0

    Default Re: How to activate the HTML Editor in News Manager?

    Hi,

    I also have same problem, I have used this code but when i add this News Content box 7 button not appear on page.

    HOW CAN I SOLVE THIS???

 

 

Similar Threads

  1. How to bypass the HTML editor?
    By Stefan L in forum Basic Configuration
    Replies: 1
    Last Post: 31 Oct 2010, 02:55 PM
  2. HTML Editor not available although updated in Configuration>My Store>HTML Editor
    By Dovente in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 22 Mar 2009, 05:09 PM
  3. News Box Manager vs. 1.4 - How to fadeout?
    By erwin208 in forum Addon Sideboxes
    Replies: 9
    Last Post: 10 Apr 2007, 12:50 PM
  4. Re: News Box Manager vs. 1.4 - How to fadeout?
    By daschenbrener in forum Addon Sideboxes
    Replies: 2
    Last Post: 25 Jan 2007, 02:12 PM

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