forked from publiclab/plots2
-
Notifications
You must be signed in to change notification settings - Fork 0
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 (publiclab#9104)
* object-oriented refactor! publiclab#9004 * create instances of new object-oriented editor publiclab#9004 * pass codeclimate: add semicolon; comment unused methods publiclab#9004 * move editor instantiation to notes/comments partial publiclab#9004 * adding const to pass codeclimate publiclab#9004 * reformat object methods publiclab#9004 * instantiate 1 editor object each on wikis, notes, and questions publiclab#9004 * rewrite to reduce cognitive complexity publiclab#9004 * trying to pass codeclimate publiclab#9004 * trying to pass codeclimate publiclab#9004 * trying to pass codeclimate publiclab#9004 * trying to pass codeclimate publiclab#9004 * trying to pass codeclimate publiclab#9004 * hopefully the last codeclimate rewrite publiclab#9004 * rewrite E.wrap's parameters to pass codeclimate publiclab#9004 * remove newlines to appease codeclimate publiclab#9004 * typo: highlighT instead of highligh publiclab#9004 * fixing typo publiclab#9004 * change const to let publiclab#9004 * assign textarea & preview to jQuery objects in constructor publiclab#9004 * change newText assignment Co-authored-by: Sagarpreet <53554917+Sagarpreet@users.noreply.github.com> * change uri check for null publiclab#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
99c4938
commit 765b247
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