mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-08 08:01:02 -04:00
Added inner.js and inner.css for custom theming and scripting of innermost iframe
This commit is contained in:
parent
c734bde7dd
commit
cc06a63654
2 changed files with 3 additions and 1 deletions
|
@ -96,7 +96,7 @@ rm -f var/minified*
|
|||
|
||||
echo "ensure custom css/js files are created..."
|
||||
|
||||
for f in "index" "pad" "timeslider"
|
||||
for f in "index" "pad" "timeslider" "inner"
|
||||
do
|
||||
if [ ! -f "static/custom/$f.js" ]; then
|
||||
cp -v "static/custom/js.template" "static/custom/$f.js" || exit 1
|
||||
|
|
|
@ -265,6 +265,8 @@ function Ace2Editor()
|
|||
pushScriptsTo(iframeHTML);
|
||||
|
||||
iframeHTML.push('<style type="text/css" title="dynamicsyntax"></style>');
|
||||
iframeHTML.push('<link rel="stylesheet" type="text/css" href="/static/custom/inner.css"/>');
|
||||
iframeHTML.push('<script type="text/javascript" src="/static/custom/inner.js"></script>');
|
||||
iframeHTML.push('</head><body id="innerdocbody" class="syntax" spellcheck="false"> </body></html>');
|
||||
|
||||
// Expose myself to global for my child frame.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue