Quantcast
Channel: CKEditor™ Provider for DNN®
Viewing all articles
Browse latest Browse all 1992

New Post: Adding Custom Template fails

$
0
0
Regretfully, 2.1.1. Beta doesn't work for me.
When on a dev machine I try the CKEditor 2.1.1 Beta load the files of:

MyTemplates.xml which is as follows:
<?xml version="1.0" encoding="utf-8" ?>
<Templates templateName="default">
    <Template title="Two lines above and below">
        <Description>Opis  szablonu</Description>
        <Html>
            <![CDATA[
                <div class="headerPanelik">headerPanelik </div>
                <div class="conik2">conik2 </div>
                <div class="bottomsCorek">bottomsCorek </div>
            ]]>
        </Html>
    </Template>
    </Templates>
and the file of Styl edytora CKEditor.css which content is below:
body {
    display: inline;
    float: none;
    left: 0;
    margin: 0;
    position: relative;
    width: 100%;
    }
    
    .headerPanelik {
    background-attachment: scroll;
    background-clip: border-box;
    background-color: rgba(0, 0, 0, 0);
    background-image: linear-gradient(#000000 40%, #1d1d1d 85%, #262626 95%);
    background-position: 0 0;
    background-repeat: repeat;
    background-size: auto auto;
    border-bottom: 5px solid #1a7cda;
    box-shadow: 6px 10px 17px black;
    display: block;
    height: 15%;
    position: relative;
    width: 100%;
    z-index: 201;
    }

    .conik2 {
    background-color: #eaeaea;
    border-top: 1px solid #808080;
    display:block;
    font-size:130%;
    padding:20px;
    }
    
    
    .bottomsCorek {
    background-color: #000000;
    border-top: 5px solid #1a7cda;
    bottom: 0;
    box-shadow: 6px -10px 17px black;
    display:block;
    font-size: x-small;
    height:10%;
    position: fixed;
    text-align: center;
    width: 100%;
}
the CKEditor doesn't implement the HTML structure from the XML file and the styling from the css file.
Maybe there is something wrong with these files which I do not know about.

That was my dev machine using 2.1.1. Beta of CKEditor.

When it comes to my production site (where I have the CKEditor 2.1.0) I tried to apply the same files on the newsletters page (http://spec-pruszkow.info/en/Admin/Newsletters which Ingo has access to) but to no avail, either.
Additionally, after I reset the CKEditor settings Portal-wide the link under the editor stopped responding for all HTML modules in the whole Portal.

Now I can't edit any CKEditor settings.
Disregard above two paragraphs as I have sorted out the problem on my own - the Custom Editor options hid under the other pages. Shouldn't it be on top of them, anyway? :)

Viewing all articles
Browse latest Browse all 1992

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>