2014-02-01, 08:06:26
(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>