curriculum-builder-TinyMCEjspanel.html 5.73 KB


<div class="col-sm-12 nopadding" ng-controller="CurrBuildController">
    <div class="col-sm-12 nopadding">
        <div class="form-inline">
            <button class="btn btn-primary btn-sm">
                <img src="../../../content/images/CB/anchor-icon.png" alt="" title="">
            </button>
            <button class="btn btn-black btn-sm" onclick="cbRenameModelShow()">
                <img src="../../../content/images/CB/icon-tasks.png" alt="" title="">
            </button>
            <button class="btn btn-black btn-sm" title="Lock">
                <img src="../../../content/images/CB/icon-lock.png" />
            </button>
            <button class="btn btn-black btn-sm" title="Back" onclick="cbBack()">
                <img src="../../../content/images/CB/icon-back.png" alt="" title="">
            </button>
            <button class="btn btn-black btn-sm" title="Forward" onclick="cbNext()">
                <img src="../../../content/images/CB/icon-next.png" alt="" title="">
            </button>
            <div class="form-group">
                <select id='cbSelect'></select>

                <!--<select ng-model="selectedCountry" ng-options="item.countryId as item.name for item in chooseCountries">
                    <option value="">Select Account</option>
                </select>-->
                <!--<!--<select class="form-control input-sm">
                    <option>What is Curriculum Builder</option>
                    <option>Prebuilt Curriculum</option>
                    <option>Creating a New Curriculum</option>
                    <option>Creating &amp; Capturing Content</option>
                    <option>Import &amp; Export Curriculum</option>
                    <option>Distributing Curriculum</option>
                </select>-->
                <label class="font13" id="slideNumber" style="color:#fff !important">Slide  01 of 06</label>
            </div>
            <button class="btn btn-black btn-sm " id="hideShowEditor" title="Show/Hide Note"><img title="" alt="" src="../../../content/images/CB/icon-note.png"></button>
        </div>
    </div>
    <div class="col-sm-1 nopadding" id="cbEditorRightSideBar">
        <div class="col-sm-12 nopadding" title="Hyperlink">
            <button class="btn btn-black btn-sm btn-block marginTop5" data-toggle="modal" data-target="#myModal-transparency-box"><img src="../../../content/images/CB/icon-link.png" alt="" title=""></button>
        </div>
        <div class="col-sm-6 nopadding" title="Add Slide">
            <button class="btn btn-black btn-sm marginTop5" onclick="CBAddNewSlide()"><img src="../../../content/images/CB/icon-addslide.png" alt="" title=""></button>
        </div>
        <div class="col-sm-6 nopadding" title="Delete Current Slide">
            <button class="btn btn-black btn-sm pull-right marginTop5" data-toggle="modal" data-target="#deletecurrentslide" onclick="CBDeleteSlide()"><img src="../../../content/images/CB/icon-removeslide.png" alt="" title=""></button>
        </div>
       
      
    </div>
    <div class="col-sm-11 nopadding">
        <textarea id="CBTextArea" style="margin-top: 37px;"></textarea>
    </div>
</div>



<script type="text/javascript">
    tinymce.remove();
    tinymce.init({
        selector: "#CBTextArea",
        plugins: "lists, advlist , textcolor",
        menubar: false,
        height : '520px',
        toolbar: 'fontsizeselect fontselect  | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist | forecolor backcolor',       
        content_style: ".mce-content-body {font-size:14pt;font-family:Arial;}",
        content_css: ['//fonts.googleapis.com/css?family=Indie+Flower'],
        theme_advanced_fonts: "Andale Mono=andale mono,times;" +
         "Arial=arial,helvetica,sans-serif;" +
         "Arial Black=arial black,avant garde;" +
         "Book Antiqua=book antiqua,palatino;" +
         "Comic Sans MS=comic sans ms,sans-serif;" +
         "Courier New=courier new,courier;" +
         "Georgia=georgia,palatino;" +
         "Helvetica=helvetica;" +
         "Impact=impact,chicago;" +
         "Symbol=symbol;" +
         "Tahoma=tahoma,arial,helvetica,sans-serif;" +
         "Terminal=terminal,monaco;" +
         "Times New Roman=times new roman,times;" +
         "Trebuchet MS=trebuchet ms,geneva;" +
         "Verdana=verdana,geneva;" +
         "Webdings=webdings;" +
         "Harrington=Harrington;" +
         "Wingdings=wingdings,zapf dingbats",

        //font_formats: 'Arial Black=arial black,avant garde;Indie Flower=indie flower, cursive;Times New Roman=times new roman,times;'


    });
    var textArea_id = "CBTextArea";
    if (tinymce.editors.length > 0) {
        tinymce.execCommand('mceFocus', true, textArea_id);
        tinymce.execCommand('mceRemoveEditor', true, textArea_id);
        tinymce.execCommand('mceAddEditor', true, textArea_id);
    }

    
    $("#hideShowEditor").click(function () {

      
        $("#cbEditorRightSideBar").toggle();
        $(".mce-panel").toggle();
     
      
    });


    function cbRenameModelShow() {
        angular.element(document.querySelector('[ng-controller="CurrBuildController"]')).scope().cbRenameModelShow();

    }
    function cbBack()
    {
        angular.element(document.querySelector('[ng-controller="CurrBuildController"]')).scope().cbBack();
    }
    function cbNext()
    {
        angular.element(document.querySelector('[ng-controller="CurrBuildController"]')).scope().cbNext();

    }
    function CBAddNewSlide()
    {
        angular.element(document.querySelector('[ng-controller="CurrBuildController"]')).scope().CBAddSlide();
    }
    function CBDeleteSlide()
    {
    
        angular.element(document.querySelector('[ng-controller="CurrBuildController"]')).scope().showDeleteSlideModel();
    }
  </script>