I have strange issue with ckeditor that it loads all page source including (header, menu, body, footer ...) not the node body field itself.
the problem may have relation with default search module as it disappears when I re-index the site till the index built again.
I tried many links and that question but nothing works for me.
I tried jquery_update but didn't make any change BTW I see the body field content before the ckeditor loads after that the field content becomes all page source
CKEditor: 7.x-1.16, CKEditor Media: 7.x-1.x-dev, jQuery_update module loading jquery 1.8
I checked ajax requests and found that /ckeditor/xss returns the whole page content.
Please help me fix that issue
Answer:
The solution in my case was based on zhilevan answer solution 2
just added checking for the $view_mode like:
function my_module_node_view($node, $view_mode, $langcode){
if ($node->type=="webform" && $view_mode != 'search_index'){
//Do some stuff here
}
solved the issue without the need to disable the search module
Also solution 1 :Switch of "Plugin for inserting Drupal teaser and page breaks" didn't make sense and I think it have no impact here