Skip to content

Commit 236331a

Browse files
committed
- Fixed spelling of puesdo > pseudo - raised and PR'd by Nils Philippsen (nphilipp)
- Handle left meta and select key for EditorApp.ctrlDown on keyup
1 parent 731ef7b commit 236331a

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

build/content-tools.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/content-tools.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/content-tools.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

external/styles/_content-edit.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ $highlight-color: #f39c12 !default;
6363
z-index: 1;
6464

6565
/**
66-
* Image and video elements use puesdo elements to display information
66+
* Image and video elements use pseudo elements to display information
6767
* such as the size of the element and for videos the `src` also.
6868
*/
6969
&:after,
@@ -150,7 +150,7 @@ $highlight-color: #f39c12 !default;
150150
* When an element that supports text content is empty (e.g '') some
151151
* browsers don't provide a height for the element and so it can appear to
152152
* disappear until the user adds content. To resolve this issue we use a
153-
* puesdo element to ensure the element contains content.
153+
* pseudo element to ensure the element contains content.
154154
*/
155155
&--empty {
156156
&:after {
@@ -311,7 +311,7 @@ $highlight-color: #f39c12 !default;
311311
z-index: 9;
312312

313313
/**
314-
* A puesdo element is used to display the type of element the helper
314+
* A pseudo element is used to display the type of element the helper
315315
* represents.
316316
*/
317317

@@ -331,7 +331,7 @@ $highlight-color: #f39c12 !default;
331331

332332
/**
333333
* For elements that have text content displayed within the helper we clip
334-
* the content and use a puesdo element to fade out any verical overflow.
334+
* the content and use a pseudo element to fade out any verical overflow.
335335
*/
336336
&--type-list,
337337
&--type-list-item-text,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ContentTools",
33
"description": "A JS library for building WYSIWYG editors for HTML content",
4-
"version": "1.6.5",
4+
"version": "1.6.6",
55
"keywords": [
66
"wysiwyg",
77
"inline",

src/scripts/tools.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,15 +283,15 @@ class ContentTools.Tools.Link extends ContentTools.Tools.Bold
283283

284284
# Add a fake selection wrapper to the selected text so that it
285285
# appears to be selected when the focus is lost by the element.
286-
selectTag = new HTMLString.Tag('span', {'class': 'ct--puesdo-select'})
286+
selectTag = new HTMLString.Tag('span', {'class': 'ct--pseudo-select'})
287287
[from, to] = selection.get()
288288
element.content = element.content.format(from, to, selectTag)
289289
element.updateInnerHTML()
290290

291291
# Measure a rectangle of the content selected so we can position the
292292
# dialog centrally.
293293
domElement = element.domElement()
294-
measureSpan = domElement.getElementsByClassName('ct--puesdo-select')
294+
measureSpan = domElement.getElementsByClassName('ct--pseudo-select')
295295
rect = measureSpan[0].getBoundingClientRect()
296296

297297
# Set-up the dialog

src/styles/content-tools.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@
7575
*
7676
* Once focus is returned to the element the class should be removed.
7777
*/
78-
.ct--puesdo-select {
78+
.ct--pseudo-select {
7979
background: rgba(black, 0.1);
8080
}

src/styles/ui/_toolbox.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
);
9797
width: $tool-size;
9898

99-
// We use the before puesdo element to display the tools associated icon
99+
// We use the before pseudo element to display the tools associated icon
100100
&:before {
101101
line-height: $tool-size;
102102
}
@@ -157,7 +157,7 @@
157157
}
158158

159159
/**
160-
* Each of the modifiers below sets the content of the puesdo before
160+
* Each of the modifiers below sets the content of the pseudo before
161161
* element to match the required icon. The list is ordered by the
162162
* position each tool in the default toolbox (as opposed to
163163
* alphabetically).

0 commit comments

Comments
 (0)