Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix simple typo, similiar -> similar #394

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/js/wysihtml5-0.3.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -7033,7 +7033,7 @@ wysihtml5.Commands = Base.extend(
BLOCK_ELEMENTS_GROUP = ["H1", "H2", "H3", "H4", "H5", "H6", "P", "BLOCKQUOTE", DEFAULT_NODE_NAME];

/**
* Remove similiar classes (based on classRegExp)
* Remove similar classes (based on classRegExp)
* and add the desired class name
*/
function _addClass(element, className, classRegExp) {
Expand Down Expand Up @@ -7201,7 +7201,7 @@ wysihtml5.Commands = Base.extend(
return;
}

// Find similiar block element and rename it (<h2 class="foo"></h2> => <h1 class="foo"></h1>)
// Find similar block element and rename it (<h2 class="foo"></h2> => <h1 class="foo"></h1>)
if (nodeName === null || wysihtml5.lang.array(BLOCK_ELEMENTS_GROUP).contains(nodeName)) {
selectedNode = composer.selection.getSelectedNode();
blockElement = dom.getParentElement(selectedNode, {
Expand Down