This is the best solution for getting rid of the "main text" box in Joomla and MamboI've tried it and it woks perfectly unlike other forum threads I've read.
Re: Getting rid of "Main Text" in editor
« Reply #1 on: May 26, 2006, 06:32:11 AM »
--------------------------------------------------------------------------------
I just took a look and it would seem that it can be acheived by commenting out one line
in /components/com_content/content.html.php
around line 2249 in my editor (within the function editContent )
you can simply comment out the call for the second editor
Code:
editorArea( 'editor2', $row->fulltext , 'fulltext', '600', '400', '70', '15' ) ; e.g.
Code:
// editorArea( 'editor2', $row->fulltext , 'fulltext', '600', '400', '70', '15' ) ;
but instead, to give some more flexibity, I would place it in a conditional such as:
Code:
if ( $_REQUEST['twoedits'] == "yes" ) {
editorArea( 'editor2', $row->fulltext , 'fulltext', '600', '400', '70', '15' ) ;
}
This would allow a second link to be created with &twoeditss=yes added to the url which would give the two editor windows for you. (or you can just add it to the url in the browser for occasional use )
so if the normal link looks like
sitedomain/index.php?option=com_content&task=new§ionid=1&Itemid=13
the optional link for reverting to two editor windows would be
sitedomain/index.php?option=com_content&task=new§ionid=1&Itemid=13&twoedits=yes
|