I've created a custom HTML tag that pulls information from my database and displays it. Basically it uses preg_match_all
to parse the body of articles for <profiletag>Person Name</profiletag>
and replaces this tag with html of the person's profile.
Now what I want is to allow my writers to insert this HTML (<profiletag>Person Name</profiletag>
) from the WYSIWYG editor rather than having to go into the source and insert a tag into the html. When they write <profiletag>
etc. in the WYSIWYG editor obviously it gets all messed up. I'm looking for something like [profile]Person Name[/profile] markup for them to include these tags in the WYSIWYG side.
Is this possible, and if so how can I implement this functionality?