rangy icon indicating copy to clipboard operation
rangy copied to clipboard

Generalize the Class Applier to Tag Applier

Open Sophivorus opened this issue 9 years ago • 1 comments

I find the Class Applier module very useful, but there is a problem: it cannot be used to wrap the selection with plain old simple tags, without any class. This makes sense, given that the module is called Class Applier, but I think the module would be even more useful if it were generalized to a Tag Applier that can wrap the selection with arbitrary tags, and only optionally add a class to those tags.

Sophivorus avatar Jul 19 '16 16:07 Sophivorus

You can do that using the surroundContents method!

edsonharantes avatar Oct 29 '16 18:10 edsonharantes