CKEditor with articles - how to save as HTML [SOLVED]

English! place to talk about development, programming and coding
Post Reply
dstover
Znuny advanced
Posts: 135
Joined: 04 Jun 2013, 23:14
Znuny Version: 3.3.3
Real Name: Dan Stover
Company: EMAC, Inc.

CKEditor with articles - how to save as HTML [SOLVED]

Post by dstover »

I am working on a program that takes the original saved data from an article and inserts that into another article later. The problem is that the content appears to be stripped of all HTML and is put back in as text. Is there some way to save the article or configure CKEditor so that this doesn't happen? It appears that the content type of the article is "text/plain" in the OTRS database article table.

Any advice would be appreciated. Thanks...Dan.
Last edited by dstover on 17 Nov 2014, 18:37, edited 1 time in total.
OTRS 3.3.3
Ubuntu 12.04
MySQL DB
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: CKEditor with articles - how to save as HTML

Post by jojo »

HTML content is handled as an attachment of the article
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
dstover
Znuny advanced
Posts: 135
Joined: 04 Jun 2013, 23:14
Znuny Version: 3.3.3
Real Name: Dan Stover
Company: EMAC, Inc.

Re: CKEditor with articles - how to save as HTML

Post by dstover »

Thank you. That was exactly the information I was looking for. I am now able to reload the HTML.

One more thing, the reloaded HTML is oddly formatted. For example, there is a lot of white space that was not there in the original. Is there anything I can do to retain the original formatting?

Thanks in advance...Dan.
OTRS 3.3.3
Ubuntu 12.04
MySQL DB
dstover
Znuny advanced
Posts: 135
Joined: 04 Jun 2013, 23:14
Znuny Version: 3.3.3
Real Name: Dan Stover
Company: EMAC, Inc.

Re: CKEditor with articles - how to save as HTML [SOLVED]

Post by dstover »

Never mind. That was a coding error on my part. Thanks for your help...Dan.
OTRS 3.3.3
Ubuntu 12.04
MySQL DB
Andrian
Znuny newbie
Posts: 3
Joined: 16 Mar 2016, 10:53
Znuny Version: OTRS 4

Re: CKEditor with articles - how to save as HTML [SOLVED]

Post by Andrian »

Can you show me the screenshot?
@dstover
Post Reply