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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nick Barry
TinyMCE
Commits
fbc645e7
Commit
fbc645e7
authored
12 years ago
by
Seth Meranda
Browse files
Options
Downloads
Plain Diff
Merge pull request
#2
from erasmussen2/master
Closes
#1
parents
d2e8c253
cf173545
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/unl/editor_plugin.js
+2
-2
2 additions, 2 deletions
plugins/unl/editor_plugin.js
with
2 additions
and
2 deletions
plugins/unl/editor_plugin.js
+
2
−
2
View file @
fbc645e7
...
...
@@ -5,7 +5,7 @@
var
Unl
=
{};
Unl
.
hasParentNodeWithClass
=
function
(
childNode
,
parentClass
)
{
for
(
var
selectedNode
=
childNode
;
selectedNode
.
id
!=
'
maincontent
'
;
selectedNode
=
selectedNode
.
parentNode
)
{
for
(
var
selectedNode
=
childNode
;
selectedNode
.
id
!=
'
maincontent
'
&&
!
selectedNode
.
body
;
selectedNode
=
selectedNode
.
parentNode
)
{
if
(
typeof
selectedNode
.
className
!==
'
undefined
'
&&
selectedNode
.
className
.
search
(
parentClass
)
>=
0
)
{
return
selectedNode
;
}
...
...
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