Closed (fixed)
Project:
BUEditor
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Nov 2008 at 07:42 UTC
Updated:
16 Aug 2010 at 18:50 UTC
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
Comment #1
ufku commentedtry this http://ufku.com/drupal/bueditor/contributions/remove-formatting
Comment #2
fpedraza commentedNice.
It would be even nicer if the regex could clean things like:
Comment #3
fpedraza commentedI answer myself: I'm dumb.
Just have to add 'p' and the regex takes care of the rest.
Comment #4
ufku commented