Commit of some changes, adding the styles plugin to all editors, with this plugin settings like backgroud color, or other styles settings can be added more easily, color picker included in the background options of this plugin

This commit is contained in:
Gustavo Cruz
2012-12-10 13:58:30 -04:00
parent 88398cf0f4
commit 5c37fed782
6 changed files with 17 additions and 15 deletions

View File

@@ -845,6 +845,8 @@ var dynaformEditor={
},
restoreHTML:function()
{
var htmlContent = this.ajax.restore_html(this.A);
tinyMCE.activeEditor.execCommand('mceSetContent', false, htmlContent);
// window._editorHTML.doc.body.innerHTML = this.ajax.restore_html(this.A);
// html_html2();
// html2_html();

View File

@@ -1,7 +1,7 @@
{if $printTemplate}
{* this is the xmlform template *}
<form id="{$form->id}" name="{$form->name}" action="{$form->action}" class="{$form->className}" method="post" encType="multipart/form-data" style="margin:0px;" onsubmit="return validateForm('{$form->objectRequiredFields}');"> <div class="borderForm" style="width:{$form->width}; padding-left:0; padding-right:0; border-width:{$form->border};">
<div class="boxTop"><div class="a"></div><div class="b"></div><div class="c"></div></div>
<div class="boxTop"><div class="a">&nbsp;</div><div class="b">&nbsp;</div><div class="c">&nbsp;</div></div>
<div class="content" style="height:{$form->height};" >
<table width="99%">
<tr>
@@ -66,7 +66,7 @@
</table>
{if $hasRequiredFields}<div class="FormRequiredTextMessage"><font color="red">* </font>{php}echo (G::LoadTranslation('ID_REQUIRED_FIELD'));{/php}</div>{/if}
</div>
<div class="boxBottom"><div class="a"></div><div class="b"></div><div class="c"></div></div>
<div class="boxBottom"><div class="a">&nbsp;</div><div class="b">&nbsp;</div><div class="c">&nbsp;</div></div>
</div>
{foreach from=$form->fields item=field}
{if ($field->type==='javascript')}