BUG 0000 "Problem in DESIGNER>Preview of Dynaforms" SOLVED

- Problem in DESIGNER>Preview of Dynaforms (WYSIWYG editor)
- Problem to edit/preview/edit-html in Templates (WYSIWYG editor)
- Solved problem, HTML code correct is obtained of editor WYSIWYG
* Available from version ProcessMaker-2.5
This commit is contained in:
Victor Saisa Lopez
2013-04-11 17:15:27 -04:00
parent b3e280498d
commit d55f6b2a5d
2 changed files with 8 additions and 12 deletions

View File

@@ -375,12 +375,8 @@ var dynaformEditor={
saveHtmlCode:function()
{
//var htmlCode = getField("HTML");
var htmlField = document.getElementById("form[HTML]_ifr");
var htmlCode = htmlField.contentWindow.document.body.innerHTML;
var response = this.ajax.set_htmlcode(this.A, tinyMCE.activeEditor.getContent());
todoRefreshHtmlCode = htmlCode === null;
if (todoRefreshHtmlCode) return;
var response=this.ajax.set_htmlcode(this.A,htmlCode);
if (response) {
G.alert(response["*message"],"Error");
this.responseAction = false;
@@ -454,7 +450,7 @@ var dynaformEditor={
path: "js/",
lineNumbers: true,
continuousScanning: 500 });*/
xmlEditor = CodeMirror.fromTextArea(document.getElementById("form[XML]"), {
mode: "application/xml",
styleActiveLine: true,
@@ -519,7 +515,7 @@ var dynaformEditor={
{
clientWinSize = getClientWindowSize();
startJSCodePress();
/*jsEditor = CodeMirror.fromTextArea('form[JS]', {
height: (clientWinSize.height - 140) + "px",
width: (_BROWSER.name == 'msie' ? '100%' : '98%'),
@@ -528,7 +524,7 @@ var dynaformEditor={
path: "js/",
lineNumbers: true,
continuousScanning: 500 });*/
jsEditor = CodeMirror.fromTextArea(document.getElementById("form[JS]"), {
mode: "javascript",
lineNumbers: true,

View File

@@ -12,12 +12,12 @@
<en/>
</fcontent>
<ACCEPT type="button" onclick="saveFile(@@pro_uid, @@filename);">
<ACCEPT type="button" onclick="getField('fcontent').value = tinyMCE.activeEditor.getContent(); saveFile(@@pro_uid, @@filename);">
<en>Save</en>
</ACCEPT>
<BTN_CANCEL type="button" onclick="cancel();">
<en>Cancel</en>
</BTN_CANCEL>
</BTN_CANCEL>
<JS type="javascript" replacetags="1"><![CDATA[
@@ -28,5 +28,5 @@ function cancel() {
}
]]></JS>
</dynaForm>
</dynaForm>