Welcome Guest, Not a member yet? Register   Sign In
Coding practices: dealing with tags, attributes and contents
#1

[eluser]popovich[/eluser]
Hello,

I am going to update a CMS, which I have written for one project and by now using on couple of other websites quite happily. The logic behind is to keep the MVC concept as consequent as possible. And with this upcoming update I feel like I am reaching my limits.

Anyway, one of the problems I have is dealing with inline tags, mainly images and anchors, but those could include other tags or attributes. I try to avoid using tinyMCE, as I am pretty happy with the CI typography and auto-linking functions, which tinyMCE lacks (or does it?...)

Take linking, for instance. How do you implement linking within a website or to external sources? Or adding a javascript function to an anchor? How do you parse it? Regex? CI specific parsing? PHP parsing?

Cheers.
#2

[eluser]popovich[/eluser]
I guess, I can simplify the question: which text markup plugin do you use with CI?




Theme © iAndrew 2016 - Forum software by © MyBB