Skip to content

Commit

Permalink
Create jquery.popline.removeformat.js
Browse files Browse the repository at this point in the history
  • Loading branch information
blyamur authored Jan 27, 2023
1 parent 5289d2e commit 6af0ab8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions scripts/plugins/jquery.popline.removeformat.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
jquery.popline.removeformat.js 1.0.0
Version: 1.0.0
Updated: Jan 27th, 2023
(c) 2023 by Mons
*/

;(function($) {
$.popline.addButton({
removeFormat: {
iconClass: "fa fa-eraser",
mode: "edit",
action: function(event) {
document.execCommand("removeFormat");
}
}
});
})(jQuery);

1 comment on commit 6af0ab8

@blyamur
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added button to clear selected text formatting

Please sign in to comment.