We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf3bf5c commit 29ad5e1Copy full SHA for 29ad5e1
src/selection.js
@@ -259,6 +259,16 @@ export default class Selection extends Cursor {
259
return content.getTags(this.host, this.range, filterFunc)
260
}
261
262
+ // Get the names of all tags that affect the current selection. Optionally
263
+ // pass a method to filter the returned elements.
264
+ //
265
+ // @param {Function filter(node)} [Optional] Method to filter the DOM
266
+ // Nodes whose names are returned.
267
+ // @return {Array of DOM Node names}
268
+ getTagNames (filterFunc) {
269
+ return content.getTagNames(this.getTags(filterFunc))
270
+ }
271
+
272
// Get all tags of the specified type that affect the current selection.
273
//
274
// @method getTagsByName
0 commit comments