This HTML CKEDITOR element has been pretty handy for offering an HTML input. I’m working with an app that uses it to allow users to compose HTML email content. The app pre-fills the input with template copy, and this works just great, however, the various templates can be quite lengthy and we’d like a way to auto-size the height of this editor element to fit the initial content. It has to be dynamic because there are multiple templates and we’d like for the default height to be relatively short (unless forced taller by the initial content).
The CSS will need to specifically identify this element, but I need some help with the code. Anyone have ideas?
The input has some long initial content. When you preview, you’ll see the element doesn’t “stretch to fit.” Would love a solution for this. Better yet, if the plugin developer is reading, perhaps build in this functionality!
Something what I tried and worked. I placed the CKEditor inside a group and made that group height 250 and set the height of the ckeditor to be 900. This way it allows to be stretched manually. It can also be done by not using the group but then the ckeditor takes up all of the editing space.
If you want it automatically you need to adjust the plugin yourself.
Loving the plugin, but I can’t get autobinding to work at all, and it keeps deleting the content every time I interact with another element. Not sure if you frequent the forum, but do you know how to solve this?
Autobinding
I can’t isolate any issues here, except that it doesn’t work. I tried checking the Show an alert on success, and the alert never triggers. Not sure if that can tell you something.
Content disappearing
It seems to happen whenever something is updated in the database. I’ve set up two fields, one with autobind and one without (and a save button). If you type something into the html editor and then save it (through autobind or the save button), the content in the editor disappears (though you can undo it).
Hi @manikandan, I read all the threads but I am still experiencing the content disappearing issue. I save a post content to DB and then, when I edit the post, it happens that the post content (visibile in the CKEditor plugin) it disappears on saving.
Unfortunately it seems that it happens randomly. I have tested many many times, also with all the possible combinations with autobinding. Here is my current setting
Can you please check it out, when you have a chance ? Has this anything to do with the “Initial element No” option (which I can not understand what is for) ? Thanks
Hi @stefanof,
“Initial element No” this is mandatory field.
Kindly please update the “Initial element No” , it’s like element id/number to populate the ckeditor into your bubble page.
If you are adding/updating the value of “Initial element No” to any text, it wont occur/cause any issue on updating the value of html content.
Thank you @manikandan. Now I will test it with “Initial element No” set to a text.
One more question. I have played a bit with other parameters like “Is full page?” and “Fit with content” just to see what happens, but it looks like that nothing changes. Here is what I have.
I would like to have either a fix container or, even better, a container that when enlarged moves down the groups below. Is is possibile to achieve this behavior ?
Hi @manikandan, I have made extensive tests but the CKEditor keeps disappearing for no reason. And everytime a new blog post is saved all the content is gone. I did as you told me and put a static initial element id. Can you please double check if this is a bug ? I appreciate because in this situation you understand that the plugin can not be used in live version of application. Thanks !