Skip to content

Improve tag replacement #24

@CePeU

Description

@CePeU

Selection of tags works nicely. Now improve on tag replacement:

One Option
div.testclass ==> div.newclass (would replace also the class inside to newclass)

Probably Better Option:
Define "functions" or keywords

  • replaceTagAddClasses(p,newclass1,newclass2)
  • replaceTagAddAttribute(p,newAttribute1,newAtribute2) //or directly in Array form? [newAttripute1,newAttribut2]
  • replaceClass(oldclass,newclass)
  • replaceAttribute(oldAttribute,newAttribute)
  • addAttribute(newAttribute)
  • addClass(newClass)

With this change the foundryID generation might be exposed also - this is probably easier for users than using the javascript?

  • addAttribute(secret="${foundryID}")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Prio 2Giving bugs and enhancements a priorityenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions