Welcome Guest, Not a member yet? Register   Sign In
[Resolved] TinyMCE and HTML content
#1

[eluser]Phil Sturgeon[/eluser]
I know this is unrelated to CodeIngiter but sssht, I'm asking it here because there are more than enough nerds who can help.

TinyMCE is the bane of my existence but is also one of the best WYSIWYGs around. Sadly over its time the developers have created about a million options and the combinations of which to use confuses the crap out of me.

I am trying to create an instance of TinyMCE that will allow me to write in HTML code in WYSIWYG view and encode it.

Two problems.

1.) It strips out any HTML I have written in on the SECOND view. First time it goes into database fine, then when I load it up again, TinyMCE strips it out.

2.) I added the following options one at a time to stop issue 1, and now it encodes ALL HTML data, including the code used to actually structure the data, not just the stuff I write in preview mode. And it STILL wont show the meta tags I mentioned...

Code:
encoding : "xml",
        entity_encoding : "raw",

        verify_html : false,
        cleanup_serializer : 'xml',

How can I get this working right? It's starting to really annoy me.
#2

[eluser]Phil Sturgeon[/eluser]
Got it in the end. TinyMCE requires a bit of extra encoding and stripslashing than other edits, not sure why or how. At least it works!




Theme © iAndrew 2016 - Forum software by © MyBB