Back to top

Autore Topic: 1.5.12 - Editor TinyMCE - Problemi vari  (Letto 8237 volte)

Offline alexred

  • Fuori controllo
  • *
  • Post: 25672
  • Sesso: Maschio
  • Esperto in ozio relaxed
    • Mostra profilo
Re:1.5.12 - Editor TinyMCE - Problemi vari
« Risposta #20 il: 03 Lug 2009, 17:35:07 »
hai pulito completamente la cache del tuo browser?
Evita post doppi.

Offline JoomlArt.eu

  • Ulcera
  • Appassionato
  • *
  • Post: 631
    • Mostra profilo
Re:1.5.12 - Editor TinyMCE - Problemi vari
« Risposta #21 il: 03 Lug 2009, 17:36:34 »
si. ma ho trovato l'inghippo.
sto usando la versione di firefox 3.5 beta 4.
con explorer va bene.
« Ultima modifica: 03 Lug 2009, 17:39:06 da paginiroger »

Offline adri56

  • Appassionato
  • ***
  • Post: 204
  • Sesso: Maschio
    • Mostra profilo
[Risolto]:1.5.12 - Editor TinyMCE - Problemi vari
« Risposta #22 il: 07 Lug 2009, 08:32:56 »
Ciao a tutti spero di fare cosa gradita, ho "scoperto" che l'editor tinymce viene molto spesso rovinato dai template di terze parti, io ho risolto copiando il form.php modificato all'interno della cartella [template/miotemplate/html/com_content/article/form.php] se serve ecco il form.
Citazione
<?php
defined('_JEXEC') or die('Restricted access'); // no direct access
require_once dirname(__FILE__) . str_replace('/', DIRECTORY_SEPARATOR, '/../../../functions.php');
?>
<?php ob_start(); ?>
<script language="javascript" type="text/javascript">
function setgood()
{
return true;
}

var sectioncategories = [];
<?php
$i = 0;
foreach ($this->lists['sectioncategories'] as $k => $items) {
foreach ($items as $v) {
echo "sectioncategories[" . $i++ . "] = ['$k', '" . addslashes($v->id) . "', '" . addslashes( $v->title ) . "'];\n\t\t";
}
}
?>

function submitbutton(pressbutton)
{
var form = document.adminForm;
if (pressbutton == 'cancel') {
submitform(pressbutton);
return;
}
try {
form.onsubmit();
} catch (e) {
alert(e);
}

// do field validation
var text = <?php echo $this->editor->getContent( 'text' ); ?>
if (form.title.value == '') {
return alert ("<?php echo JText::_( 'Article must have a title', true ); ?>");
} else if (text == '') {
return alert ("<?php echo JText::_( 'Article must have some text', true ); ?>");
} else if (parseInt('<?php echo $this->article->sectionid;?>')) {
// for articles
if (form.catid && getSelectedValue('adminForm','catid') < 1) {
return alert("<?php echo JText::_( 'Please select a category', true ); ?>");
}
}
<?php echo $this->editor->save('text'); ?>
submitform(pressbutton);
}
</script>
<form action="<?php echo $this->action ?>" method="post" name="adminForm" id="adminForm" onsubmit="setgood();">
<fieldset>
<legend><?php echo JText::_('Editor'); ?></legend>
<table class="adminform" width="100%">
<tr>
<td><div style="float: left;">
<label for="title"><?php echo JText::_( 'Title' ); ?>:</label>
<input class="inputbox" type="text" id="title" name="title" size="50" maxlength="100" value="<?php echo $this->escape($this->article->title); ?>" />
<input class="inputbox" type="hidden" id="alias" name="alias" value="<?php echo $this->escape($this->article->alias); ?>" />
</div>
<div style="float: right;">
<button type="button" onclick="submitbutton('save')"><?php echo JText::_('Save') ?></button>
<button type="button" onclick="submitbutton('cancel')"><?php echo JText::_('Cancel') ?></button>
</div></td>
</tr>
</table>
<?php echo $this->editor->display('text', $this->article->text, '100%', '400', '70', '15'); ?>
</fieldset>
<fieldset>
<legend><?php echo JText::_('Publishing'); ?></legend>
<table class="adminform">
<tr>
<td class="key"><label for="sectionid"><?php echo JText::_( 'Section' ); ?>:</label></td>
<td><?php echo $this->lists['sectionid']; ?></td>
</tr>
<tr>
<td class="key"><label for="catid"><?php echo JText::_( 'Category' ); ?>:</label></td>
<td><?php echo $this->lists['catid']; ?></td>
</tr>
<?php if ($this->user->authorize('com_content', 'publish', 'content', 'all')) : ?>
<tr>
<td class="key"><label for="state"><?php echo JText::_( 'Published' ); ?>:</label></td>
<td><?php echo $this->lists['state']; ?></td>
</tr>
<?php endif; ?>
<tr>
<td width="120" class="key"><label for="frontpage"><?php echo JText::_( 'Show on Front Page' ); ?>:</label></td>
<td><?php echo $this->lists['frontpage']; ?></td>
</tr>
<tr>
<td class="key"><label for="created_by_alias"><?php echo JText::_( 'Author Alias' ); ?>:</label></td>
<td><input type="text" id="created_by_alias" name="created_by_alias" size="50" maxlength="100" value="<?php echo $this->article->created_by_alias; ?>" class="inputbox" /></td>
</tr>
<tr>
<td class="key"><label for="publish_up"><?php echo JText::_( 'Start Publishing' ); ?>:</label></td>
<td><?php echo JHTML::_('calendar', $this->article->publish_up, 'publish_up', 'publish_up', '%Y-%m-%d %H:%M:%S', array('class'=>'inputbox', 'size'=>'25', 'maxlength'=>'19')); ?></td>
</tr>
<tr>
<td class="key"><label for="publish_down"><?php echo JText::_( 'Finish Publishing' ); ?>:</label></td>
<td><?php echo JHTML::_('calendar', $this->article->publish_down, 'publish_down', 'publish_down', '%Y-%m-%d %H:%M:%S', array('class'=>'inputbox', 'size'=>'25', 'maxlength'=>'19')); ?></td>
</tr>
<tr>
<td valign="top" class="key"><label for="access"><?php echo JText::_( 'Access Level' ); ?>:</label></td>
<td><?php echo $this->lists['access']; ?></td>
</tr>
<tr>
<td class="key"><label for="ordering"><?php echo JText::_( 'Ordering' ); ?>:</label></td>
<td><?php echo $this->lists['ordering']; ?></td>
</tr>
</table>
</fieldset>
<fieldset>
<legend><?php echo JText::_('Metadata'); ?></legend>
<table class="adminform" width="100%">
<tr>
<td valign="top" class="key" width="120"><label for="metadesc"><?php echo JText::_( 'Description' ); ?>:</label></td>
<td><textarea rows="5" cols="50" style="width: 95%; height: 120px" class="inputbox" id="metadesc" name="metadesc"><?php echo str_replace('&','&amp;',$this->article->metadesc); ?></textarea></td>
</tr>
<tr>
<td valign="top" class="key" width="120"><label for="metakey"><?php echo JText::_( 'Keywords' ); ?>:</label></td>
<td><textarea rows="5" cols="50" style="width: 95%; height: 50px" class="inputbox" id="metakey" name="metakey"><?php echo str_replace('&','&amp;',$this->article->metakey); ?></textarea></td>
</tr>
</table>
</fieldset>
<input type="hidden" name="option" value="com_content" />
<input type="hidden" name="id" value="<?php echo $this->article->id; ?>" />
<input type="hidden" name="version" value="<?php echo $this->article->version; ?>" />
<input type="hidden" name="created_by" value="<?php echo $this->article->created_by; ?>" />
<input type="hidden" name="referer" value="<?php echo isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''; ?>" />
<?php echo JHTML::_( 'form.token' ); ?>
<input type="hidden" name="task" value="" />
</form>
<?php echo JHTML::_('behavior.keepalive'); ?> <?php echo artxPost(artxPageTitle($this), ob_get_clean()); ?>
Buon Lavoro.
« Ultima modifica: 07 Lug 2009, 09:09:48 da adri56 »
Uno sconosciuto è soltanto uno della famiglia che non hai ancora incontrato.

Offline il_cosmo

  • Esploratore
  • **
  • Post: 98
  • Sesso: Maschio
    • Mostra profilo
Re:1.5.12 - Editor TinyMCE - Problemi vari
« Risposta #23 il: 10 Lug 2009, 09:27:57 »
 ...forse sarò un principiante ma... nelle mie cartelle [template/miotemplate/html/com_content/article] non esistono file [form.php]...
 Dovrei forse crearne uno con il codice che hai indicato?
 Grazie

Offline adri56

  • Appassionato
  • ***
  • Post: 204
  • Sesso: Maschio
    • Mostra profilo
Re:1.5.12 - Editor TinyMCE - Problemi vari
« Risposta #24 il: 10 Lug 2009, 10:09:28 »
No se nel tuo template non c'è il form.php lascia stare. è solo per i template di una certa ditta.
Uno sconosciuto è soltanto uno della famiglia che non hai ancora incontrato.

Offline cranky69

  • Nuovo arrivato
  • *
  • Post: 38
    • Mostra profilo
Re:1.5.12 - Editor TinyMCE - Problemi vari
« Risposta #25 il: 07 Ago 2009, 20:09:36 »
Salve,
io ho un problema con la formattazione in joomla 1.5.12.
Quando inserisco più di un articolo in una pagina, in questo caso l'homepage, nel secondo articolo viene modificata la formattazione.
Viene aggiunta una td class con larghezza al 50% e questo naturalmente scompiglia tutto.
C'è un modo per correggere la cosa, anche manualmente?

P.s. l'home page in questione è www.creazionimultimedia.com/site

 



Web Design Bolzano Kreatif