Skip to content

Commit

Permalink
- Fixed spelling of puesdo > pseudo - raised and PR'd by Nils Philipp…
Browse files Browse the repository at this point in the history
…sen (nphilipp)

- Handle left meta and select key for EditorApp.ctrlDown on keyup
  • Loading branch information
anthonyjb committed Jul 26, 2018
1 parent 731ef7b commit 236331a
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions build/content-tools.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/content-tools.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/content-tools.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions external/styles/_content-edit.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ $highlight-color: #f39c12 !default;
z-index: 1;

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

/**
* A puesdo element is used to display the type of element the helper
* A pseudo element is used to display the type of element the helper
* represents.
*/

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

/**
* For elements that have text content displayed within the helper we clip
* the content and use a puesdo element to fade out any verical overflow.
* the content and use a pseudo element to fade out any verical overflow.
*/
&--type-list,
&--type-list-item-text,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ContentTools",
"description": "A JS library for building WYSIWYG editors for HTML content",
"version": "1.6.5",
"version": "1.6.6",
"keywords": [
"wysiwyg",
"inline",
Expand Down
4 changes: 2 additions & 2 deletions src/scripts/tools.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -283,15 +283,15 @@ class ContentTools.Tools.Link extends ContentTools.Tools.Bold

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

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

# Set-up the dialog
Expand Down
2 changes: 1 addition & 1 deletion src/styles/content-tools.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@
*
* Once focus is returned to the element the class should be removed.
*/
.ct--puesdo-select {
.ct--pseudo-select {
background: rgba(black, 0.1);
}
4 changes: 2 additions & 2 deletions src/styles/ui/_toolbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
);
width: $tool-size;

// We use the before puesdo element to display the tools associated icon
// We use the before pseudo element to display the tools associated icon
&:before {
line-height: $tool-size;
}
Expand Down Expand Up @@ -157,7 +157,7 @@
}

/**
* Each of the modifiers below sets the content of the puesdo before
* Each of the modifiers below sets the content of the pseudo before
* element to match the required icon. The list is ordered by the
* position each tool in the default toolbox (as opposed to
* alphabetically).
Expand Down

0 comments on commit 236331a

Please sign in to comment.