-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor editor.js with Object-Oriented Principles (#9104)
* object-oriented refactor! #9004 * create instances of new object-oriented editor #9004 * pass codeclimate: add semicolon; comment unused methods #9004 * move editor instantiation to notes/comments partial #9004 * adding const to pass codeclimate #9004 * reformat object methods #9004 * instantiate 1 editor object each on wikis, notes, and questions #9004 * rewrite to reduce cognitive complexity #9004 * trying to pass codeclimate #9004 * trying to pass codeclimate #9004 * trying to pass codeclimate #9004 * trying to pass codeclimate #9004 * trying to pass codeclimate #9004 * hopefully the last codeclimate rewrite #9004 * rewrite E.wrap's parameters to pass codeclimate #9004 * remove newlines to appease codeclimate #9004 * typo: highlighT instead of highligh #9004 * fixing typo #9004 * change const to let #9004 * assign textarea & preview to jQuery objects in constructor #9004 * change newText assignment Co-authored-by: Sagarpreet <53554917+Sagarpreet@users.noreply.github.com> * change uri check for null #9004 Co-authored-by: Sagarpreet <53554917+Sagarpreet@users.noreply.github.com> Co-authored-by: Sagarpreet <53554917+Sagarpreet@users.noreply.github.com>
- Loading branch information
1 parent
56ef498
commit 8a98a57
Showing
8 changed files
with
116 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,6 @@ | |
|
||
<script> | ||
jQuery(document).ready(function() { | ||
$E.initialize(); | ||
$E = new Editor(); | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,7 +147,6 @@ | |
$(this).remove(); | ||
}); | ||
$(function() { | ||
$E.initialize(); | ||
$("img").lazyload(); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters