Download & Extend

Help with Button to remove all tags?

Project:BUEditor
Version:5.x-1.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I'd like a button that will clear all html from the selected text. Could someone please help me with the code? I'm completely stumped on how to create a button that will clear the selected text of any bracketed (<>) html tags.

Thanks!!
Ben

Comments

#1

#2

Nice.

It would be even nicer if the regex could clean things like:

[p style='text-align:left']some text[/p]

#3

I answer myself: I'm dumb.

Just have to add 'p' and the regex takes care of the rest.

#4

Status:active» fixed

#5

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.