Advanced HTML Editor 3 Support Product Page
Solved
toolbar works except the text and background color in all browsers
Reported 02 Jul 2013 21:39:29
1
has this problem
02 Jul 2013 21:39:29 claude bastide posted:
hello dmx team.I try to make a form with date of beginning, date of end and two html editors3 in the same place.
Everything works fine except text and background color buttons.
Could you help ?
Here is a code sample:
<?php
function dmxCalendarFormat($dt,$format) { //v1.01
if (!is_null($dt)) {
if ($dt != '') {
$strDate = is_numeric($dt) ? $dt : strtotime($dt);
$strRet = $format;
$strRet = preg_replace('/dd/i','d',$strRet);
$strRet = preg_replace('/mm/i','m',$strRet);
$strRet = preg_replace('/yy/i','Y',$strRet);
$strRet = preg_replace('/hh/i','H',$strRet);
$strRet = preg_replace('/nn/i','i',$strRet);
$strRet = preg_replace('/ss/i','s',$strRet);
return date($strRet,$strDate);
}
}
return '';
}
?>
IN HEAD:
<link rel="stylesheet" type="text/css" href="../../Styles/dmxEditor.css" />
<link rel="stylesheet" type="text/css" href="../../ScriptLibrary/dmxEditor/iconsets/modern/modern.css" />
<link rel="stylesheet" type="text/css" href="../../styles/dmxEditor/metal/metal.css" />
<!--[if IE]><script type="text/javascript" src="../../dmx/lib/excanvas-compressed.js"></script><![endif]-->
<link rel="stylesheet" type="text/css" href="../../dmx/widgets/Lightbox/styles/default/style.css" />
<link rel="stylesheet" type="text/css" href="../../Styles/dmxCalendar2.css" />
<link rel="stylesheet" type="text/css" href="../../Styles/jqueryui/black-tie/black-tie.css" />
<script type="text/javascript" src="../../ScriptLibrary/jquery-latest.pack.js"></script>
<script type="text/javascript" src="../../ScriptLibrary/dmxEditor.min.js"></script>
<script type="text/javascript" src="../../ScriptLibrary/require.js"></script>
<script type="text/javascript" src="../../dmx/dmx.core.js"></script>
<script type="text/javascript" src="../../dmx/widgets/Lightbox/dmx.lightbox.js"></script>
<script type="text/javascript" src="../../ScriptLibrary/jquery-ui-core.min.js"></script>
<script type="text/javascript" src="../../ScriptLibrary/jquery-ui-effects.min.js"></script>
<script type="text/javascript" src="../../ScriptLibrary/dmxCalendar2.js"></script>
<script type="text/javascript" src="../../ScriptLibrary/dmxCalendar2/lang/French/jquery.ui.datepicker-fr.js"></script>
IN BODY:
CALENDARS:
<label for="datedebut">Date de Début:</label>
<input class="dmxCalendar2" name="datedebut" id="datedebut" value="<?php echo dmxCalendarFormat($datedebut, "dd-mm-yy" ; ?>" tabindex="2" />
<script type="text/javascript">
// <![CDATA[
jQuery(document).ready(
function()
{
jQuery("#datedebut".dmxCalendar2(
{"focusOnLoad": true, "dateFormat": "dd-mm-yy", "defaultDate": "<?php echo dmxCalendarFormat($datedebut, "dd-mm-yy" ; ?>", "altFormat": "dd-mm-yy", "showButtonPanel": true, "showOtherMonths": true, "condDates": [], "firstDay": 1, "showOn": "both", "changeMonth": true, "duration": "slow", "showOptions": {"direction": "up", "easing": "swing"}, "yearRange": "c-10:c+10", "constrainInput": true, "autoSize": true}
);
}
);
// ]]>
</script>
<label for="datefin">Date de Fin:</label>
<input class="dmxCalendar2" name="datefin" id="datefin" value="<?php echo dmxCalendarFormat($datefin, "dd-mm-yy" ; ?>" tabindex="3" />
<script type="text/javascript">
// <![CDATA[
jQuery(document).ready(
function()
{
jQuery("#datefin".dmxCalendar2(
{"dateFormat": "dd-mm-yy", "defaultDate": "<?php echo dmxCalendarFormat($datefin, "dd-mm-yy" ; ?>", "minDate": "+1", "altFormat": "dd-mm-yy", "showButtonPanel": true, "showOtherMonths": true, "condDates": [], "firstDay": 1, "showOn": "both", "changeMonth": true, "duration": "slow", "showOptions": {"direction": "up", "easing": "swing"}, "yearRange": "c-10:c+10", "constrainInput": true, "autoSize": true}
);
}
);
// ]]>
</script>
AND FINALY THE TEXT EDITORS:
<fieldset>
<legend class="green">Composez votre texte: (‡ apparaÓtre dans la page d'accueil)</legend>
<label for="txtintro">Tapez votre texte et mettez le en forme:</label>
<textarea id="txtIntro" name="txtIntro" class="dmxEditor metal" style="width:600px;height:500px" tabindex="5"><?php echo stripslashes(stripslashes(html_entity_decode($txtIntro, ENT_QUOTES))); ?></textarea>
<script type="text/javascript">
// <![CDATA[
jQuery(document).ready(
function()
{
jQuery("#txtIntro".dmxEditor(
{"FileManager": {"path": "../../Images_import", "view": "thumb", "showThumbs": true, "allowUpload": true, "allowDownload": true, "allowCreate": true, "allowRename": true, "allowDelete": true}, "ImageGallery": {"path": "../../Images_import/TextesImg", "cols": 10, "rows": 10, "allowUpload": true, "allowDelete": true, "allowZoom": true}, "height": 500, "textColor": "#333333", "focusOnLoad": false, "allowLightbox": true, "allowUpload": true, "uploadPath": "../../Images_import/TextesImg", "uploadProcessor": "php", "allowResize": true, "resizeMaxHeight": 600, "iconSet": "modern", "includeCss": "../../Styles/userStyle.css", "skin": "metal", "locale": "fr", "formatterSettings": {"linkType": "abs"}, "toolbars": {"Search": {"enabled": false}}, "extensions": ["FileManager", "ImageGallery", "path_browser", "resizer"]}
);
}
);
// ]]>
</script>
</fieldset>
<fieldset>
<legend class="green">Composez votre texte: (‡ apparaÓtre dans la page des soldes du catalogue)</legend>
<label for="txt">Tapez votre texte et mettez le en forme:</label>
<textarea id="txt" name="txt" class="dmxEditor metal" style="width:730px;height:500px" tabindex="6"><?php echo stripslashes(stripslashes(html_entity_decode($txt, ENT_QUOTES))); ?></textarea>
<script type="text/javascript">
// <![CDATA[
jQuery(document).ready(
function()
{
jQuery("#txt".dmxEditor(
{"FileManager": {"path": "../../Images_import", "view": "thumb", "showThumbs": true, "allowUpload": true, "allowDownload": true, "allowCreate": true, "allowRename": true, "allowDelete": true}, "HTML5Slideshow": {"controls": {"position": "bottom"}, "description": {"position": "bottom"}, "kenburns": {"enabled": false}}, "ImageGallery": {"path": "../../Images_import/TextesImg", "cols": 10, "rows": 10, "allowUpload": true, "allowDelete": true, "allowZoom": true}, "width": 730, "height": 500, "textColor": "#333333", "focusOnLoad": false, "allowLightbox": true, "allowUpload": true, "uploadPath": "../../Images_import/TextesImg", "uploadProcessor": "php", "allowResize": true, "resizeMaxHeight": 600, "iconSet": "modern", "includeCss": "../../Styles/userStyle.css", "skin": "metal", "locale": "fr", "formatterSettings": {"linkType": "abs"}, "extensions": ["FileManager", "HTML5Slideshow", "ImageGallery", "path_browser", "resizer"]}
);
}
);
// ]]>
</script>
</fieldset>
Replies
Replied 10 Jul 2013 07:39:10
10 Jul 2013 07:39:10 Miroslav Zografski replied:
Hello Calude,
Please, provide a link to a test page, where this issue can be investigated in the context of your usage.
Regards.
Please, provide a link to a test page, where this issue can be investigated in the context of your usage.
Regards.
Replied 10 Jul 2013 07:45:44
10 Jul 2013 07:45:44 claude bastide replied:
Hello.
I just updated DMX Editor with the last update and it seems that the problem is fixed
Thank's for this update...
regards.
claude
I just updated DMX Editor with the last update and it seems that the problem is fixed
Thank's for this update...
regards.
claude
Replied 16 Aug 2023 07:51:47
16 Aug 2023 07:51:47 User replied:
thanks