Changes between Initial Version and Version 1 of Ticket #7979, comment 8


Ignore:
Timestamp:
Jul 17, 2014, 10:30:46 PM (11 years ago)
Author:
Kimball Robinson
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7979, comment 8

    initial v1  
    11I checked this at http://nightly.ckeditor.com/14-07-17-06-05/full/samples/replacebyclass.html and see the same problem, version 4.4.4.
     2
     3This has to do with the fact that the <body> element inside the ckeditor iframe doesn't take up the entire visible area, and the event handling seems to be on the body element.
     4
     5This could be improved by expanding the body element to take up the entire IFrame.  Here's some proof-of-concept CSS that could be improved upon:
     6
     7{{{
     8
     9/* CSS rules outside the iframe */
     10#cke_contents iframe {
     11    width: 100%;
     12    height: 100%;
     13}
     14
     15/* CSS rules for inside the ckeditor iframe */
     16html {
     17
     18    height: 100%;
     19}
     20
     21body.cke_editable {
     22    min-height: 95%;
     23    width: 96%;
     24    min-height: calc(100% - 20px);
     25    width: calc(100% - 2em);
     26    margin: 0 1em 0 1em;
     27    top: 0;
     28    position: absolute;
     29    /*background: #eee;*/
     30    /*border: 1px solid red;*/
     31}
     32
     33}}}
     34
     35
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy