Hejsa.
Jeg har tilføjet CKEditor til mit system. Det fungere også super på alle andre sider, pånær lige den ene side.
Får ingen fejl ej heller i min log i mit developer tool.
Den fremkommer bare ikke på to textarea på denne ene side.
Min header fil:
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
-
- <title>Ansøgninger</title>
-
- <link href="<?php echo base_url('assets/css/bootstrap.min.css'); ?>" rel="stylesheet" />
- <link href="<?php echo base_url('assets/css/custom.css'); ?>" rel="stylesheet" />
-
- <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
- <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
- <!--[if lt IE 9]>
- <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
- <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
- <![endif]-->
- </head>
- <body <?php echo (isset($print) && $print == TRUE ? 'style="background-color: #fff;" onload="printPage();"' : ''); ?>>
- <div class="container">
- <?php
- (isset($nav) && $nav !== '' ? $this->load->view('admin/components/nav') : '');
- ?>
Siden det drejer sig om:
- <div class="page-header">
- <h1>Opret ny ansøgning</h1>
- </div>
-
- <button class="btn btn-info right" style="margin-left: 10px;" data-toggle="modal" data-target="#helpmodal"><span class="glyphicon glyphicon-info-sign"></span> Hjælp</button>
- <?php echo anchor('admin/salaried', '<span class="glyphicon glyphicon-chevron-left"></span> Tilbage', array('class' => 'btn btn-primary right', 'role' => 'button')); ?>
-
- <div class="clearfix"></div>
-
- <?php
- if($this->session->flashdata('success') != ''){
- echo "<div class='alert alert-success alert-dismissible'>";
- echo "<button type='button' class='close' data-dismiss='alert'><span aria-hidden='true'>×</span><span class='sr-only'>Luk</span></button>";
- echo $this->session->flashdata('success');
- echo "</div>";
- }
-
- if($this->session->flashdata('errors') != '' || validation_errors() != FALSE){
- echo "<div class='alert alert-danger alert-dismissible'>";
- echo "<button type='button' class='close' data-dismiss='alert'><span aria-hidden='true'>×</span><span class='sr-only'>Luk</span></button>";
- echo $this->session->flashdata('errors');
- echo validation_errors();
- echo "</div>";
- }
-
- if($this->session->flashdata('warning') != ''){
- echo "<div class='alert alert-warning alert-dismissible'>";
- echo "<button type='button' class='close' data-dismiss='alert'><span aria-hidden='true'>×</span><span class='sr-only'>Luk</span></button>";
- echo $this->session->flashdata('warning');
- echo "</div>";
- }
- ?>
-
- <?php echo form_open_multipart('admin/salaried/new_salaried', array('id' => 'application_form')) ?>
- <div class="panel panel-default">
- <div class="panel-heading">
- <h3 class="panel-title">Ny funktionær ansøgning</h3>
- </div>
- <div class="panel-body">
- <div class="form-group">
- <div class="input-group">
- <div class="input-group-addon"><i class="glyphicon glyphicon-barcode"></i></div>
- <?php
- echo form_input(array(
- 'class' => 'form-control',
- 'placeholder' => 'CPR nr.',
- 'name' => 'cpr',
- 'value' => set_value('cpr'),
- 'id' => 'cpr'
- ));
- ?>
- </div>
- </div>
-
- <div class="form-group">
- <div class="input-group">
- <div class="input-group-addon"><i class="glyphicon glyphicon-user"></i></div>
- <?php
- echo form_input(array(
- 'class' => 'form-control',
- 'placeholder' => 'Navn',
- 'name' => 'name',
- 'value' => set_value('name')
- ));
- ?>
- </div>
- </div>
-
- <div class="form-group">
- <div class="input-group">
- <div class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></div>
- <?php
- echo form_input(array(
- 'class' => 'form-control',
- 'placeholder' => 'Email',
- 'name' => 'email',
- 'value' => set_value('email')
- ));
- ?>
- </div>
- </div>
-
- <div class="form-group">
- <div class="input-group">
- <div class="input-group-addon"><i class="glyphicon glyphicon-home"></i></div>
- <?php
- echo form_input(array(
- 'class' => 'form-control',
- 'placeholder' => 'Adresse',
- 'name' => 'address',
- 'value' => set_value('address')
- ));
- ?>
- </div>
- </div>
-
- <div class="row">
- <div class="col-md-4">
- <div class="form-group">
- <div class="input-group">
- <div class="input-group-addon"><i class="glyphicon glyphicon-home"></i></div>
- <?php
- echo form_input(array(
- 'class' => 'form-control',
- 'placeholder' => 'Postnr.',
- 'name' => 'zip',
- 'value' => set_value('zip'),
- 'id' => 'zip'
- ));
- ?>
- </div>
- </div>
- </div>
- <div class="col-md-8">
- <div class="form-group">
- <div class="input-group">
- <div class="input-group-addon"><i class="glyphicon glyphicon-home"></i></div>
- <?php
- echo form_input(array(
- 'class' => 'form-control',
- 'placeholder' => 'By',
- 'name' => 'city',
- 'value' => set_value('city')
- ));
- ?>
- </div>
- </div>
- </div>
- </div>
-
- <div class="row">
- <div class="col-md-4">
- <div class="form-group">
- <div class="input-group">
- <div class="input-group-addon"><i class="glyphicon glyphicon-phone-alt"></i></div>
- <?php
- echo form_input(array(
- 'class' => 'form-control',
- 'placeholder' => 'Tlf. nr.',
- 'name' => 'phone',
- 'value' => set_value('phone'),
- 'id' => 'phone'
- ));
- ?>
- </div>
- </div>
- </div>
- <div class="col-md-8">
- <div class="form-group">
- <div class="input-group">
- <div class="input-group-addon"><i class="glyphicon glyphicon-briefcase"></i></div>
- <?php
- echo form_input(array(
- 'class' => 'form-control',
- 'placeholder' => 'Stilling',
- 'name' => 'position',
- 'value' => set_value('position')
- ));
- ?>
- </div>
- </div>
- </div>
- </div>
-
- <div class="form-group">
- <?php
- echo form_textarea(array(
- 'class' => 'form-control editor',
- 'name' => 'comments',
- 'placeholder' => 'Kommentar',
- 'value' => set_value('comments')
- ));
- ?>
- </div>
-
- <div class="row">
- <div class="col-md-2">
- <div class="form-group">Upload CV</div>
- </div>
- <div class="col-md-10">
- <div class="form-group">
- <div class="input-group">
- <div class="input-group-addon"><i class="glyphicon glyphicon-upload"></i></div>
- <?php
- echo form_upload(array(
- 'class' => 'form-control',
- 'name' => 'userfile',
- ));
- ?>
- </div>
- </div>
- </div>
- </div>
-
-
- <div class="row">
- <div class="col-md-2">
- <div class="form-group">Upload udtalelser</div>
- </div>
- <div class="col-md-10">
- <div class="form-group">
- <div class="input-group">
- <div class="input-group-addon"><i class="glyphicon glyphicon-upload"></i></div>
- <?php
- echo form_upload(array(
- 'class' => 'form-control',
- 'name' => 'announcements',
- ));
- ?>
- </div>
- </div>
- </div>
- </div>
-
- <div class="row">
- <div class="col-md-2">
- <div class="form-group">Upload ansøgning</div>
- </div>
- <div class="col-md-10">
- <div class="form-group">
- <div class="input-group">
- <div class="input-group-addon"><i class="glyphicon glyphicon-upload"></i></div>
- <?php
- echo form_upload(array(
- 'class' => 'form-control',
- 'name' => 'application',
- ));
- ?>
- </div>
- </div>
- </div>
- </div>
-
- <div class="row">
- <div class="col-md-2">
- <div class="form-group">Upload billede</div>
- </div>
- <div class="col-md-10">
- <div class="form-group">
- <div class="input-group">
- <div class="input-group-addon"><i class="glyphicon glyphicon-upload"></i></div>
- <?php
- echo form_upload(array(
- 'class' => 'form-control',
- 'name' => 'picture',
- ));
- ?>
- </div>
- </div>
- </div>
- </div>
-
- <div class="form-group">
- <?php
- echo form_textarea(array(
- 'name' => 'comments',
- 'class' => 'form-control editor'
- ));
- ?>
- </div>
- </div>
- </div>
- <?php
- echo form_button(array(
- 'type' => 'submit',
- 'class' => 'btn btn-primary right',
- 'content' => '<span class="glyphicon glyphicon-save"></span> Opret ansøgning'
- ));
- ?>
- <?php echo form_close(); ?>
Min footer fil:
- </div>
-
- <!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>-->
- <script src="<?php echo base_url('assets/js/jquery_local.js'); ?>"></script>
- <script src="<?php echo base_url('assets/js/bootstrap.min.js'); ?>"></script>
- <script src="<?php echo base_url('assets/js/bootstrap-select.js'); ?>"></script>
- <script src="<?php echo base_url('assets/js/jquery.maskedinput.js'); ?>"></script>
- <script src="<?php echo base_url('assets/js/jquery.validate.js'); ?>"></script>
- <script src="<?php echo base_url('ckeditor/ckeditor.js'); ?>"></script>
- <script src="<?php echo base_url('ckeditor/adapters/jquery.js'); ?>"></script>
- <script src="<?php echo base_url('assets/js/custom.js'); ?>"></script>
- </body>
- </html>
Min custom.js
- $(document).ready(function(){
- $("#cpr").mask("999999-9999");
- $("#zip").mask("9999");
- $("#phone").mask("99 99 99 99");
- $(".date").mask("99.99.9999");
-
- $("#application_form").validate();
-
- $("").click(function(e){
- e.preventDefault();
- $(this).tab('show');
- });
-
-
- $('.btn-stop').click(function(e){
- e.preventDefault();
- });
-
-
- $(".editor").ckeditor({
- language: 'da',
- shiftEnterMode: CKEDITOR.ENTER_BR
- });
-
-
- $(".tip").tooltip();
-
-
- });
-
- function printPage(){
- window.print();
- }
Nogen der kan hjælpe mig?