Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Boxiang Sun
erp5
Commits
6cff2641
Commit
6cff2641
authored
May 08, 2015
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_code_mirror: Use HTML <textarea> rather than dirty JS hacks.
There was problems handling '\' and '`' characters.
parent
215681bb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
bt5/erp5_code_mirror/SkinTemplateItem/portal_skins/erp5_code_mirror/code_mirror_support.xml
...tem/portal_skins/erp5_code_mirror/code_mirror_support.xml
+7
-8
bt5/erp5_code_mirror/bt/change_log
bt5/erp5_code_mirror/bt/change_log
+3
-0
No files found.
bt5/erp5_code_mirror/SkinTemplateItem/portal_skins/erp5_code_mirror/code_mirror_support.xml
View file @
6cff2641
...
...
@@ -151,6 +151,13 @@
\n
<div
id=
"merge"
style=
"height: 100%; width: 100%"
>
\n
<div
id=
"view"
style=
"display: none;"
></div>
\n
\n
<dtml-if
field_id
>
\n
<textarea
id=
"&dtml-field_id;"
name=
"&dtml-field_id;"
style=
"display: none;"
>
\n
<dtml-var
content
>
\n
</textarea>
\n
</dtml-if>
\n
\n
</div>
\n
</dtml-unless>
\n
\n
...
...
@@ -167,14 +174,6 @@
// When the textarea does not exist yet (eg ERP5Form EditorField)\n
<dtml-if
field_id
>
\n
textarea = $(\'#
&dtml-field_id;
\');\n
if(!textarea.length) {\n
$(\'#merge\').append(\n
\'
<textarea
id=
"&dtml-field_id;"
name=
"&dtml-field_id;"
style=
"display: none;"
>
\' + \n
`
&dtml-content;
` +\n
\'
</textarea>
\');\n
\n
textarea = $(\'#
&dtml-field_id;
\');\n
}\n
<dtml-elif
textarea_selector
>
\n
textarea = $(\'
<dtml-var
name=
"textarea_selector"
>
\');\n
<dtml-else>
\n
...
...
bt5/erp5_code_mirror/bt/change_log
View file @
6cff2641
2015-05-08 arnaud.fontaine
* Use HTML <textarea> rather than dirty JS hacks.
2015-05-08 arnaud.fontaine
* 'viewportMargin: Infinity' is too slow with files with > 1000 lines.
...
...
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