forked from benkeen/generatedata
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work on custom HTML format; Export Types can now include custom CSS f…
…iles
- Loading branch information
Showing
17 changed files
with
244 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#etHTMLCustomFormatDialog pre { | ||
margin-bottom: 0px; | ||
} | ||
#etHTMLCustomContent { | ||
float:left; | ||
border-left: 1px solid #efefef; | ||
padding-left: 12px; | ||
margin-left: 12px; | ||
} | ||
#etHTMLCustomSmarty { | ||
width: 100%; | ||
height: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
"use strict"; | ||
|
||
define([ | ||
"manager", | ||
"constants", | ||
"lang", | ||
"generator" | ||
], function(manager, C, L, generator) { | ||
|
||
var MODULE_ID = "export-type-HTML"; | ||
var LANG = L.exportTypePlugins.HTML; | ||
var _dialog = null; | ||
var _codeMirror = null; | ||
|
||
var _updateDialogDimensions = function() { | ||
var dimensions = _getDialogDimensions(); | ||
$("#etHTMLCustomFormatDialog").dialog({ | ||
width: dimensions.width, | ||
height: dimensions.height | ||
}); | ||
} | ||
|
||
var _openEditCustomFormatDialog = function() { | ||
var dimensions = _getDialogDimensions(); | ||
$("#etHTMLCustomSmarty").css({ | ||
width: "400px", | ||
height: "400px" | ||
}); | ||
|
||
// calculate size of main content area | ||
$("#etHTMLCustomFormatDialog").dialog({ | ||
title: "Custom HTML Format", | ||
width: dimensions.width, | ||
height: dimensions.height, | ||
open: function() { | ||
if (_codeMirror == null) { | ||
_codeMirror = CodeMirror.fromTextArea($("#etHTMLCustomSmarty")[0], { | ||
mode: "xml", | ||
lineNumbers: true | ||
}); | ||
$("#etHTMLCustomSmarty").addClass("CodeMirror_medium"); | ||
} | ||
}, | ||
buttons: [ | ||
{ | ||
text: "Close", | ||
click: function() { | ||
$(this).dialog("close"); | ||
} | ||
} | ||
] | ||
}); | ||
|
||
return false; | ||
} | ||
|
||
var _getDialogDimensions = function() { | ||
return { | ||
height: ($(window).height() / 100) * 90, | ||
width: ($(window).width() / 100) * 90 | ||
} | ||
} | ||
|
||
$(function() { | ||
$(window).resize(_updateDialogDimensions); | ||
$("#etHTML_editCustomFormat").bind("click", function() { _openEditCustomFormatDialog(); return false; }); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.