Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
3.3.0 and custom Editor Toolbar
#11
(2014-02-01, 03:55:05)shawn_a Wrote: lol, sure thing, If you want let me on and I will take a look and get you a fix.
It is possible that the comma fix from 3.2.2 was reverted or missing, so i have suspects.

Code:
<script type="text/javascript">
            
            var editor = CKEDITOR.replace( 'post-content', {
                    skin : 'getsimple',
                    forcePasteAsPlainText : true,
                    language : 'en',
                    defaultLanguage : 'en',
                                            contentsCss: 'http://localhost/JPW/theme/Weaving/editor.css',
                                        entities : false,
                    uiColor : '#FFFFFF',
                    height: '300px',
                    baseHref : ' http://localhost/JPW/',
                    tabSpaces:10,
                    filebrowserBrowseUrl : 'filebrowser.php?type=all',
                    filebrowserImageBrowseUrl : 'filebrowser.php?type=images',
                    filebrowserWindowWidth : '730',
                    filebrowserWindowHeight : '500'
                    ,toolbar: ['Paste','PasteFromWord','Bold', 'Italic', 'Underline', 'NumberedList', 'BulletedList','JustifyLeft','JustifyCenter','JustifyRight',
'JustifyBlock', 'TextColor', 'BGColor', 'Link', 'Image', 'HorizontalRule', 'RemoveFormat'],
'/',['Format', 'Source']                    ,                    
            });
            CKEDITOR.instances["post-content"].on("instanceReady", InstanceReadyEvent);
                function InstanceReadyEvent() {
                    this.document.on("keyup", function () {
                            $('#editform #post-content').trigger('change');
                  });
                }

            </script>

when I click the error link, I get this:
Code:
<script>
            /* Warning for unsaved Data */
            var yourText = null;
            var warnme = false;
            var pageisdirty = false;
            
            $('#cancel-updates').hide();
    
            window.onbeforeunload = function () {
                if (warnme || pageisdirty == true) {
                    return "You are about to leave this page and will lose any unsaved information.";
                }
            }
            
            $('#editform').submit(function(){
                warnme = false;
                return checkTitle();
            });

            checkTitle = function(){
                if($.trim($("#post-title").val()).length == 0){
                    alert("You cannot save a page with an empty title");
                    return false;
                }                    
            }

            jQuery(document).ready(function() {

                                $('#editform').bind('change keypress paste focus textInput input',function(){                    
                            warnme = true;
                            pageisdirty = false;
                            autoSaveInd();
                    });
                                        
                    function autoSaveInd(){
                            $('#pagechangednotify').show();                
                            $('#pagechangednotify').text("Page has unsaved changes");  
                            $('input[type=submit]').css('border-color','#CC0000');              
                            $('#cancel-updates').show();                        
                    }
            });
        </script>
except with 295 empty lines before it. I don't know what plugin would use the editor.
Reply


Messages In This Thread
3.3.0 and custom Editor Toolbar - by Timbow - 2014-01-31, 23:31:53
RE: 3.3.0 and custom Editor Toolbar - by shawn_a - 2014-02-01, 00:02:02
RE: 3.3.0 and custom Editor Toolbar - by Timbow - 2014-02-01, 00:21:18
RE: 3.3.0 and custom Editor Toolbar - by shawn_a - 2014-02-01, 01:08:48
RE: 3.3.0 and custom Editor Toolbar - by shawn_a - 2014-02-01, 01:11:59
RE: 3.3.0 and custom Editor Toolbar - by shawn_a - 2014-02-01, 01:12:45
RE: 3.3.0 and custom Editor Toolbar - by Timbow - 2014-02-01, 02:19:35
RE: 3.3.0 and custom Editor Toolbar - by shawn_a - 2014-02-01, 03:21:25
RE: 3.3.0 and custom Editor Toolbar - by Timbow - 2014-02-01, 03:33:25
RE: 3.3.0 and custom Editor Toolbar - by shawn_a - 2014-02-01, 03:55:05
RE: 3.3.0 and custom Editor Toolbar - by Timbow - 2014-02-01, 08:06:26
RE: 3.3.0 and custom Editor Toolbar - by shawn_a - 2014-02-01, 08:29:32
RE: 3.3.0 and custom Editor Toolbar - by shawn_a - 2014-02-01, 08:40:07
RE: 3.3.0 and custom Editor Toolbar - by shawn_a - 2014-02-01, 13:42:55
RE: 3.3.0 and custom Editor Toolbar - by shawn_a - 2014-02-01, 13:49:54
RE: 3.3.0 and custom Editor Toolbar - by shawn_a - 2014-02-01, 13:51:53
RE: 3.3.0 and custom Editor Toolbar - by shawn_a - 2014-02-01, 14:19:02
RE: 3.3.0 and custom Editor Toolbar - by Timbow - 2014-02-03, 05:34:47
RE: 3.3.0 and custom Editor Toolbar - by shawn_a - 2014-02-03, 07:07:56



Users browsing this thread: 1 Guest(s)