Can't find a reference to this but apologies if I've missed it.
I'm upgrading from FCK to Ck and I have used the createHTML function in FCK so as to produce complete HTML pages that can be stored as PHP variables which can then be displayed as and when. I cannot see any way to do this in CK - either v3 or v4 - can anyone advise?
Many thanks in anticipation!
Alyn
Since CKEditor 3.x there's no
Since CKEditor 3.x there's no createHTML function. However, there are couple of other options. The basic one is that you create a <textarea> with the encoded content as its value on your own (e.g. in PHP) and then just call CKEDITOR.replace( 'textareaID' ). See the replacebycode sample. Note that when you press submit button the value of editor is sent to PHP.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Many thanks for that! - I'll
Many thanks for that! - I'll give it a try.
Alyn