id summary reporter owner description type status priority milestone component version resolution keywords cc 10669 CKEditor follows links in WebKit-based browsers, replacing the iframe content Сковорода Никита Андреевич "Tested under qtwebkit 2.3.1, qtwebkit 2.3.2, qt5-webkit from Qt 5.1.0, and Safari on iPad. Steps to reproduce: 1. Open http://nightly.ckeditor.com/13-07-23-13-05/standard/samples/replacebyclass.html 2. Hover any link in the editable content with the mouse pointer. 3. Click the hovered link. What should happen (as it does in, for example, Firefox 22.0): 2. The cursor icon should be «text». 3. The link should not open, the input caret should move to the clicked point. What happens: 2. The cursor is «pointer» (checked in qtwebkit). 3. The link opens in the editor iframe and replaces all the content, resulting in data loss. Workaround (jQuery-based): {{{ /// WARNING: bloody fix for WebKit-based browsers CKEDITOR.on('instanceReady', function(ev) { if (!CKEDITOR.env.webkit) return; function disableLinks() { var content = $(ev.editor.document.$.defaultView.frameElement).contents(); content.find('body.cke_editable').on('click', 'a', function() { return false; }); content.find('head').append(''); } ev.editor.on('mode', function() { if (this.mode === 'wysiwyg') disableLinks(); }); disableLinks(); }); }}}" Bug new Normal General 4.2.1 iOS