Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
2
2020-01-30 itmax-68
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Playground
2020-01-30 itmax-68
Commits
6876b4b9
Commit
6876b4b9
authored
Feb 04, 2020
by
Mark Siy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix
parent
e333dd1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
generator.js
resources/views/generator/generator.js
+6
-4
No files found.
resources/views/generator/generator.js
View file @
6876b4b9
...
...
@@ -167,7 +167,7 @@ $( function() {
var
generatedHtmlCode
=
""
;
return
generatedHtmlCode
+=
'
<p><br /></p><ac:structured-macro ac:name="code" ac:schema-version="1" ac:macro-id="9cc9c68e-a585-4703-ab8d-e719fd86e2bf">
'
+
'
<ac:parameter ac:name="
theme">Emacs
</ac:parameter>
'
+
'
<ac:parameter ac:name="
language">text
</ac:parameter>
'
+
'
<ac:parameter ac:name="linenumbers">true</ac:parameter>
'
+
"
<ac:plain-text-body>
"
+
"
<![CDATA[
\n
"
+
...
...
@@ -179,13 +179,15 @@ $( function() {
function
setForImage
(
elem
){
var
generatedHtmlImage
=
""
;
return
generatedHtmlImage
+=
"
<p><br /></p><ac:structured-macro ac:name=
\"
html
\"
ac:schema-version=
\"
1
\"
ac:macro-id=
\"
ceb972e2-285c-4db7-8bc9-7d1206e86ee4
\"
>
"
+
return
generatedHtmlImage
+=
"
<p><br /></p>
"
+
'
<table style="width: 100.0%;"><tbody><tr><th>
'
+
"
<ac:structured-macro ac:name=
\"
html
\"
ac:schema-version=
\"
1
\"
ac:macro-id=
\"
ceb972e2-285c-4db7-8bc9-7d1206e86ee4
\"
>
"
+
"
<ac:plain-text-body>
"
+
"
<![CDATA[
\n
<center><img src=
\"
"
+
$
(
elem
).
find
(
"
.itemBox
"
).
val
()
+
"
\"
style=
\"
max-width:1100px;
\"
/></center>
\n
]]>
"
+
"
\"
style=
\"
max-width:1100px;
max-height:600px;
\"
/></center>
\n
]]>
"
+
"
</ac:plain-text-body>
"
+
"
</ac:structured-macro>
"
;
"
</ac:structured-macro>
</th></tr></tbody></table>
"
;
}
function
setForMarkdown
(
elem
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment