Table inside of the CKeditor

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
5/27/2014 10:13:58 AM
Gravatar
Total Posts 19

Table inside of the CKeditor

Hey Joe,

I have found that if I create a table in the CKeditor and don't have any other content in the editor(<p> tags before or after the table). I would not be able to move my cursor outside of the table. Enter and tab both make a new line or a new row in the table. This seems to only be occurring in Firefox, IE 11, 10, and 9. In Chrome I am able to place my cursor before or after the table and hit enter for a new line.

I know that I can move to the Source view and add <p> </p> after or before the table to make a new line. However normal users may not know html well enough to add in a line. They will be stuck working inside of this table. 

I was looking ckeditor.com and found that they use a plug in called 'Magic Line' that gets around this problem. Giving the user the ability to place a new paragraph after or before content. I did some digging in the ckeditor-mojoconfig.js and found that Magic Line is being removed because it causes false isdirty onchange. Is this still an issue in the newest MojoPortal (2.4.0.2 or 2.4.0.3)?

If Magic Line still cant be used, could the ability to place the cursor outside of the table be added for other browsers?

5/27/2014 10:25:53 AM
Gravatar
Total Posts 19

Re: Table inside of the CKeditor

It seems the 'false isdirty onchange' is still occurring in Chrome and Firefox when Magic line is enabled, however IE seems to be behaving correctly.

5/30/2014 11:03:32 AM
Gravatar
Total Posts 18439

Re: Table inside of the CKeditor

Hi,

I just updated our source code repository and our demo site to CKeditor 4.4.1. Previously we were using a 3rd party onchange plugin but there was an onchange event added directly to the editor in recent versions so now I've removed the onchange plugin and removed the line that was removing the magic line plugin and onchange seems to work ok.

Can you try it on our demo site now and see if you think the table problem is fixed or not?

If it is fixed, then you could grab the /ClientScript/ckeditor441 folder and the ckeditor-mojoconfig.js file from our repository and deploy it to your installation then change the setting in Web.config to point to the new version of the editor.

<add key="CKEditor:BasePath" value="~/ClientScript/ckeditor441/"/>

Thanks,

Joe

5/30/2014 1:45:06 PM
Gravatar
Total Posts 19

Re: Table inside of the CKeditor

The Magic line is now showing up and the problem with 'false isdirty onchange' is no longer occurring. I can easily click the Magic line above the table to add a <p> tag. However the Magic line that displays under the table disappears before I can click and add a <p> tag. 

You must sign in to post in the forums. This thread is closed to new posts.