Loading...
 
Skip to main content

Image resizing in Wysiwyg converts {img} to html image

Status
Open
Subject
Image resizing in Wysiwyg converts {img} to html image
Version
6.x
Feature
WYSIWYG (What You See is What You Get)
Submitted by
Nelson Ko
Lastmod by
Nelson Ko
Rating
(0)
Description
adding pref will "fix" this. However, for IE, there is an additioal CKEditor bug that still needs to be fixed: http://dev.ckeditor.com/ticket/4208
Solution
Copy to clipboard
Index: block.textarea.php =================================================================== --- block.textarea.php (revision 30451) +++ block.textarea.php (working copy) @@ -151,6 +151,7 @@ window.CKEDITOR.config.extraPlugins += (window.CKEDITOR.config.extraPlugins ? ",tikiplugin" : "tikiplugin" ); window.CKEDITOR.plugins.addExternal( "tikiplugin", "'.$tikiroot.'lib/ckeditor_tiki/plugins/tikiplugin/"); window.CKEDITOR.config.ajaxAutoSaveTargetUrl = "'.$tikiroot.'tiki-auto_save.php"; // URL to post to (also used for plugin processing) +window.CKEDITOR.config.disableObjectResizing = true; '); // before all if ($prefs['wysiwyg_htmltowiki'] === 'y') {


and if you are really desperate and can't wait for CKeditor to make a good patch, the following lines at the respective place indicated in http://dev.ckeditor.com/ticket/4208 might work:

Copy to clipboard
try{A.document.$.execCommand('enableObjectResizing',false,!A.config.disableObjectResizing);}catch(aa){A.document.getBody().on( CKEDITOR.env.ie ? 'resizestart' : 'resize' , function( evt ) { evt.data.preventDefault();}); A.document.getBody().on( CKEDITOR.env.ie ? 'dragstart' : 'drag' , function( evt ) { evt.data.preventDefault();});}try{A.document.$.execCommand('enableInlineTableEditing',false,!A.config.disableNativeTableHandles);}catch(ab){ A.document.getBody().on( CKEDITOR.env.ie ? 'resizestart' : 'resize' , function( evt ) { evt.data.preventDefault();}); }
Importance
7
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
3620
Created
Tuesday 02 November, 2010 13:38:14 UTC
by Nelson Ko
LastModif
Tuesday 02 November, 2010 14:27:58 UTC


Show PHP error messages