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
0
Merge Requests
0
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
Léo-Paul Géneau
erp5
Commits
2f727158
Commit
2f727158
authored
Jul 25, 2017
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_xinha_editor: allow override xinha css
author: Sven Franck
parent
d191900b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
1 deletion
+31
-1
bt5/erp5_xinha_editor/SkinTemplateItem/portal_skins/erp5_xinha_editor/xinha/LoadEditor.js.js
...tem/portal_skins/erp5_xinha_editor/xinha/LoadEditor.js.js
+1
-0
bt5/erp5_xinha_editor/SkinTemplateItem/portal_skins/erp5_xinha_editor/xinha_custom.css.css
...eItem/portal_skins/erp5_xinha_editor/xinha_custom.css.css
+1
-0
bt5/erp5_xinha_editor/SkinTemplateItem/portal_skins/erp5_xinha_editor/xinha_custom.css.xml
...eItem/portal_skins/erp5_xinha_editor/xinha_custom.css.xml
+28
-0
bt5/erp5_xinha_editor/SkinTemplateItem/portal_skins/erp5_xinha_editor/xinha_support.zpt
...lateItem/portal_skins/erp5_xinha_editor/xinha_support.zpt
+1
-1
No files found.
bt5/erp5_xinha_editor/SkinTemplateItem/portal_skins/erp5_xinha_editor/xinha/LoadEditor.js.js
View file @
2f727158
...
@@ -9,6 +9,7 @@ function xinha_init()
...
@@ -9,6 +9,7 @@ function xinha_init()
{
{
if
(
!
Xinha
.
loadPlugins
(
xinha_plugins
,
xinha_init
))
return
;
if
(
!
Xinha
.
loadPlugins
(
xinha_plugins
,
xinha_init
))
return
;
var
xinha_config
=
new
Xinha
.
Config
();
var
xinha_config
=
new
Xinha
.
Config
();
xinha_config
.
pageStyleSheets
=
[
"
xinha_custom.css
"
];
xinha_editors
=
Xinha
.
makeEditors
(
xinha_editors
,
xinha_config
,
xinha_plugins
);
xinha_editors
=
Xinha
.
makeEditors
(
xinha_editors
,
xinha_config
,
xinha_plugins
);
Xinha
.
startEditors
(
xinha_editors
);
Xinha
.
startEditors
(
xinha_editors
);
}
}
...
...
bt5/erp5_xinha_editor/SkinTemplateItem/portal_skins/erp5_xinha_editor/xinha_custom.css.css
0 → 100644
View file @
2f727158
/* override from other portal skins */
\ No newline at end of file
bt5/erp5_xinha_editor/SkinTemplateItem/portal_skins/erp5_xinha_editor/xinha_custom.css.xml
0 → 100644
View file @
2f727158
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"File"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
xinha_custom.css
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/css
</string>
</value>
</item>
<item>
<key>
<string>
precondition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_xinha_editor/SkinTemplateItem/portal_skins/erp5_xinha_editor/xinha_support.zpt
View file @
2f727158
<tal:block tal:define="site_root python: here.getWebSiteValue() or here.getPortalObject();
<tal:block tal:define="site_root python: here.getWebSiteValue() or here.getPortalObject();
portal_url python: site_root.absolute_url();">
portal_url python: site_root.absolute_url();">
<script type="text/javascript" tal:content="structure string:
<script type="text/javascript" tal:content="structure string:
_editor_url = '${portal_url}/xinha'">
_editor_url = '${portal_url}/xinha'
;
">
</script>
</script>
<script type="text/javascript" tal:attributes="src string:${portal_url}/xinha/XinhaCore.js"></script>
<script type="text/javascript" tal:attributes="src string:${portal_url}/xinha/XinhaCore.js"></script>
<script type="text/javascript" tal:attributes="src string:${portal_url}/xinha/LoadEditor.js"></script>
<script type="text/javascript" tal:attributes="src string:${portal_url}/xinha/LoadEditor.js"></script>
...
...
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