OZONE Asylum
Forums
DHTML/Javascript
need a way to seacrh and move html tags in a string....
This page's ID:
29174
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
well actually I'm tweaking a plugin of tinymce javascript editor. I'm trying to make a plugin that imitates the actions of the format painter option in MS outlook - don't ask why, my boss just HAS TO HAVE THAT integrated. The darn plugin is supposed to actually when you select a bunch of text - it applies the style of the first element in the selection to all the text selected. I figured out one simple but very crude idea and that was to move all the closing tags inside the selection to the end of the selection and move all opening tags to the front of teh selection i.e. all strong, italic etc tags would be pushed to either extreme.. The darn thing has had me biting my head off for the whole day and I have absolutely idea how to go from here.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »