Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TinyMCE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Experience Group
TinyMCE
Commits
2f4bea28
Commit
2f4bea28
authored
13 years ago
by
Eric Rasmussen
Browse files
Options
Downloads
Patches
Plain Diff
Update unl plugin for 3.1 templates and update example
parent
68c4898a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
UNLexample.shtml
+124
-81
124 additions, 81 deletions
UNLexample.shtml
plugins/unl/editor_plugin.js
+3
-1
3 additions, 1 deletion
plugins/unl/editor_plugin.js
with
127 additions
and
82 deletions
UNLexample.shtml
+
124
−
81
View file @
2f4bea28
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xml:lang=
"en"
>
<!-- InstanceBegin template="/Templates/fixed.dwt" codeOutsideHTMLIsLocked="false" -->
<!--[if IEMobile 7 ]><html class="ie iem7"><![endif]-->
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"><![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"><![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"><![endif]-->
<!--[if (gte IE 9)|(gt IEMobile 7) ]><html class="ie" lang="en"><![endif]-->
<!--[if !(IEMobile)|!(IE)]><!-->
<html
lang=
"en"
>
<!-- InstanceBegin template="/Templates/fixed.dwt" codeOutsideHTMLIsLocked="false" --><!--<![endif]-->
<head>
<head>
<!--#include virtual="/wdn/templates_3.1/includes/metanfavico.html" -->
<!--
<!--
Membership and regular participation in the UNL Web Developer Network
Membership and regular participation in the UNL Web Developer Network
is required to use the UNL templates. Visit the WDN site at
is required to use the UNL templates. Visit the WDN site at
...
@@ -13,17 +19,14 @@
...
@@ -13,17 +19,14 @@
create a derivative work.
create a derivative work.
This message may not be removed from any pages based on the UNL site template.
This message may not be removed from any pages based on the UNL site template.
$Id: fixed.dwt 536 2009-07-23 15:47:30Z bbieber2
$
$Id
$
-->
-->
<link
rel=
"stylesheet"
type=
"text/css"
media=
"screen"
href=
"/wdn/templates_3.0/css/all.css"
/>
<!--#include virtual="/wdn/templates_3.1/includes/scriptsandstyles.html" -->
<link
rel=
"stylesheet"
type=
"text/css"
media=
"print"
href=
"/wdn/templates_3.0/css/print.css"
/>
<script
type=
"text/javascript"
src=
"/wdn/templates_3.0/scripts/all.js"
></script>
<!--#include virtual="/wdn/templates_3.0/includes/browserspecifics.html" -->
<!--#include virtual="/wdn/templates_3.0/includes/metanfavico.html" -->
<!-- InstanceBeginEditable name="doctitle" -->
<!-- InstanceBeginEditable name="doctitle" -->
<title>
U
NL | Department | New Page
</title>
<title>
U
se a descriptive page title | Optional Site Title (use for context) | University of Nebraska
–
Lincoln
</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!-- Place optional header elements here -->
<!-- Place optional header elements here -->
<!-- tinymce stuff -->
<!-- tinymce stuff -->
...
@@ -73,36 +76,60 @@ WDN.loadJS("jquery.tinymce.js",function () {
...
@@ -73,36 +76,60 @@ WDN.loadJS("jquery.tinymce.js",function () {
<!-- InstanceEndEditable -->
<!-- InstanceEndEditable -->
<!-- TemplateParam name="class" type="text" value="fixed" -->
</head>
</head>
<body
class=
"fixed"
>
<body
class=
"fixed"
>
<p
class=
"skipnav"
>
<a
class=
"skipnav"
href=
"#maincontent"
>
Skip Navigation
</a>
</p>
<nav
class=
"skipnav"
>
<a
class=
"skipnav"
href=
"#maincontent"
>
Skip Navigation
</a>
</nav>
<div
id=
"wdn_wrapper"
>
<div
id=
"wdn_wrapper"
>
<div
id=
"header"
>
<a
href=
"http://www.unl.edu/"
title=
"UNL website"
><img
src=
"/wdn/templates_3.0/images/logo.png"
alt=
"UNL graphic identifier"
id=
"logo"
/></a>
<header
id=
"header"
role=
"banner"
>
<h1>
University of Nebraska
–
Lincoln
</h1>
<a
id=
"logo"
href=
"http://www.unl.edu/"
title=
"UNL website"
>
UNL
</a>
<!--#include virtual="/wdn/templates_3.0/includes/wdnTools.html" -->
<span
id=
"wdn_institution_title"
>
University of Nebraska
–
Lincoln
</span>
</div>
<span
id=
"wdn_site_title"
>
<!-- InstanceBeginEditable name="titlegraphic" -->
The Title of My Site
<!-- InstanceEndEditable -->
</span>
<!--#include virtual="/wdn/templates_3.1/includes/idm.html" -->
<!--#include virtual="/wdn/templates_3.1/includes/wdnTools.html" -->
</header>
<div
id=
"wdn_navigation_bar"
>
<div
id=
"wdn_navigation_bar"
>
<di
v
id=
"breadcrumbs"
>
<na
v
id=
"breadcrumbs"
>
<!-- WDN: see glossary item 'breadcrumbs' -->
<!-- WDN: see glossary item 'breadcrumbs' -->
<h3
class=
"wdn_list_descriptor hidden"
>
Breadcrumbs
</h3>
<!-- InstanceBeginEditable name="breadcrumbs" -->
<!-- InstanceBeginEditable name="breadcrumbs" -->
<ul>
<ul>
<li><a
href=
"http://www.unl.edu/"
title=
"University of Nebraska–Lincoln"
>
UNL
</a></li>
<li><a
href=
"http://www.unl.edu/"
title=
"University of Nebraska–Lincoln"
>
UNL
</a></li>
<li>
Department
</li>
<li
class=
"selected"
><a
href=
"#"
title=
"Site Title"
>
Site Title
</a></li>
<li>
Page Title
</li>
</ul>
</ul>
<!-- InstanceEndEditable -->
</div>
<!-- InstanceEndEditable -->
</nav>
<div
id=
"wdn_navigation_wrapper"
>
<div
id=
"wdn_navigation_wrapper"
>
<div
id=
"navigation"
>
<!-- InstanceBeginEditable name="navlinks" -->
<nav
id=
"navigation"
role=
"navigation"
>
<ul><li><a
href=
"http://unl.edu/"
>
Home
</a></li></ul>
<h3
class=
"wdn_list_descriptor hidden"
>
Navigation
</h3>
<!-- InstanceEndEditable -->
</div>
<!-- InstanceBeginEditable name="navlinks" -->
<ul><li><a
href=
"http://www.unl.edu/"
title=
"UNL homepage"
>
UNL
</a></li></ul>
<!-- InstanceEndEditable -->
</nav>
</div>
</div>
</div>
</div>
<div
id=
"wdn_content_wrapper"
>
<div
id=
"wdn_content_wrapper"
>
<div
id=
"titlegraphic"
>
<!-- InstanceBeginEditable name="titlegraphic" -->
<div
id=
"pagetitle"
>
<h1><a
href=
"#"
>
TinyMCE Example
</a></h1>
<!-- InstanceEndEditable -->
</div>
<!-- InstanceBeginEditable name="pagetitle" -->
<div
id=
"pagetitle"
>
<!-- InstanceBeginEditable name="pagetitle" -->
<h2><a
href=
"#"
>
My Page Title
</a></h2>
<!-- InstanceEndEditable -->
</div>
<h1>
This is your page title. It's now an
<
h1
>
, baby!
</h1>
<div
id=
"maincontent"
>
<!-- InstanceEndEditable -->
</div>
<div
id=
"maincontent"
role=
"main"
>
<!--THIS IS THE MAIN CONTENT AREA; WDN: see glossary item 'main content area' -->
<!--THIS IS THE MAIN CONTENT AREA; WDN: see glossary item 'main content area' -->
<!-- InstanceBeginEditable name="maincontentarea" -->
<!-- InstanceBeginEditable name="maincontentarea" -->
...
@@ -120,7 +147,7 @@ WDN.loadJS("jquery.tinymce.js",function () {
...
@@ -120,7 +147,7 @@ WDN.loadJS("jquery.tinymce.js",function () {
<div>
<div>
<textarea
id=
"elm1"
name=
"elm1"
rows=
"15"
cols=
"80"
style=
"width: 80%"
class=
"tinymce"
>
<textarea
id=
"elm1"
name=
"elm1"
rows=
"15"
cols=
"80"
style=
"width: 80%"
class=
"tinymce"
>
<
h3
>
Headline H3
<
/h3
>
<
h3
>
Headline H3
<
/h3
>
<
div class="
three_col lef
t"
>
<
div class="
grid9 firs
t"
>
<
p
>
<
p
>
This is some
<a
href=
"http://wdn.unl.edu/"
>
example text
</a>
that you can edit inside the
<
strong
>
TinyMCE editor
<
/strong
>
.
This is some
<a
href=
"http://wdn.unl.edu/"
>
example text
</a>
that you can edit inside the
<
strong
>
TinyMCE editor
<
/strong
>
.
<
/p
>
<
/p
>
...
@@ -129,7 +156,7 @@ WDN.loadJS("jquery.tinymce.js",function () {
...
@@ -129,7 +156,7 @@ WDN.loadJS("jquery.tinymce.js",function () {
<
/p
>
<
/p
>
<
/div
>
<
/div
>
<
div class="
col right
"
>
<
div class="
grid3
"
>
<
div class="zenbox"
><
h3
>
zenbox title
<
/h3
>
this is text in a zenbox
<
/div
>
<
div class="zenbox"
><
h3
>
zenbox title
<
/h3
>
this is text in a zenbox
<
/div
>
<
/div
>
<
/div
>
</textarea>
</textarea>
...
@@ -156,32 +183,48 @@ WDN.loadJS("jquery.tinymce.js",function () {
...
@@ -156,32 +183,48 @@ WDN.loadJS("jquery.tinymce.js",function () {
<!-- InstanceEndEditable -->
<!-- InstanceEndEditable -->
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
<!--#include virtual="/wdn/templates_3.
0
/includes/noscript.html" -->
<!--#include virtual="/wdn/templates_3.
1
/includes/noscript.html" -->
<!--THIS IS THE END OF THE MAIN CONTENT AREA.-->
<!--THIS IS THE END OF THE MAIN CONTENT AREA.-->
</div>
</div>
<div
id=
"footer"
>
</div>
<footer
id=
"footer"
>
<div
id=
"footer_floater"
></div>
<div
id=
"footer_floater"
></div>
<div
class=
"footer_col"
>
<div
class=
"footer_col"
id=
"wdn_footer_feedback"
>
<!--#include virtual="/wdn/templates_3.
0
/includes/feedback.html" -->
<!--#include virtual="/wdn/templates_3.
1
/includes/feedback.html" -->
</div>
</div>
<div
class=
"footer_col"
>
<!-- InstanceBeginEditable name="leftcollinks" -->
<div
class=
"footer_col"
id=
"wdn_footer_related"
>
<!-- InstanceBeginEditable name="leftcollinks" -->
<h3>
Related Links
</h3>
<h3>
Related Links
</h3>
<!-- InstanceEndEditable -->
</div>
<div
class=
"footer_col"
>
<!-- InstanceBeginEditable name="contactinfo" -->
<!-- InstanceEndEditable -->
<h3>
Contacting Us
</h3>
</div>
<!-- InstanceEndEditable -->
</div>
<div
class=
"footer_col"
id=
"wdn_footer_contact"
>
<div
class=
"footer_col"
>
<!--#include virtual="/wdn/templates_3.0/includes/socialmediashare.html" -->
<!-- InstanceBeginEditable name="contactinfo" -->
<h3>
Contact Us
</h3>
<!-- InstanceEndEditable -->
</div>
</div>
<!-- InstanceBeginEditable name="optionalfooter" -->
<!-- InstanceEndEditable -->
<div
class=
"footer_col"
id=
"wdn_footer_share"
>
<div
id=
"wdn_copyright"
>
<!-- InstanceBeginEditable name="footercontent" -->
<!--#include virtual="/wdn/templates_3.1/includes/socialmediashare.html" -->
Copyright 2010
</div>
<!-- InstanceBeginEditable name="optionalfooter" -->
<!-- InstanceEndEditable -->
<div
id=
"wdn_copyright"
>
<div>
<!-- InstanceBeginEditable name="footercontent" -->
©
2012
<!-- InstanceEndEditable -->
<!-- InstanceEndEditable -->
<!--#include virtual="/wdn/templates_3.0/includes/wdn.html" -->
<!--#include virtual="/wdn/templates_3.1/includes/wdn.html" -->
|
<a
href=
"http://validator.unl.edu/check/referer"
>
W3C
</a>
|
<a
href=
"http://jigsaw.w3.org/css-validator/check/referer?profile=css3"
>
CSS
</a>
<a
href=
"http://www.unl.edu/"
title=
"UNL Home"
id=
"wdn_unl_wordmark"
><img
src=
"/wdn/templates_3.0/css/footer/images/wordmark.png"
alt=
"UNL's wordmark"
/></a>
</div>
</div>
</div>
<!--#include virtual="/wdn/templates_3.1/includes/logos.html" -->
</div>
</div>
<div
id=
"wdn_wrapper_footer"
>
</div
>
</footer
>
</div>
</div>
</body>
</body>
<!-- InstanceEnd -->
</html>
</html>
This diff is collapsed.
Click to expand it.
plugins/unl/editor_plugin.js
+
3
−
1
View file @
2f4bea28
...
@@ -43,9 +43,11 @@ Unl.hasParentNodeWithClass = function(childNode, parentClass) {
...
@@ -43,9 +43,11 @@ Unl.hasParentNodeWithClass = function(childNode, parentClass) {
//'div[style]/[*]';
//'div[style]/[*]';
ed
.
onBeforeSetContent
.
add
(
function
(
ed
,
o
)
{
ed
.
onBeforeSetContent
.
add
(
function
(
ed
,
o
)
{
ed
.
dom
.
loadCSS
(
"
/wdn/templates_3.0/css/all.css
"
);
ed
.
dom
.
loadCSS
(
"
/wdn/templates_3.1/css/compressed/base.css
"
);
ed
.
dom
.
loadCSS
(
"
/wdn/templates_3.1/css/compressed/combined_widths.css
"
);
ed
.
getBody
().
className
+=
'
fixed
'
;
ed
.
getBody
().
className
+=
'
fixed
'
;
ed
.
getBody
().
id
=
'
maincontent
'
;
ed
.
getBody
().
id
=
'
maincontent
'
;
ed
.
getBody
().
style
.
background
=
'
#ffffff
'
;
});
});
/*ed.onPostProcess.add(function(ed, o) {
/*ed.onPostProcess.add(function(ed, o) {
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment