#3168: Unknown script code appears in the editor
-------------------------------------------+--------------------------------
Reporter: vsprabha | Owner:
Type: Bug | Status: new
Priority: Normal | Milestone:
Component: Project : MediaWiki+FCKeditor | Version: FCKeditor 2.6.2
Keywords: |
-------------------------------------------+--------------------------------
Steps to replicate:[[BR]]
1. Have some default content in the form field which uses editor.[[BR]]
2. After the page is loaded with the editor, select all the content in the
editor and press delete button on the keyboard[[BR]]
3. Press delete button once again, script code will appear in the editor.
[[BR]]
Example:
1. Visit the link http://www.sustainlane.com [[BR]]
2. Click on the link 'Post to Sustainlane' which is on the right side of
the page below a search box. [[BR]]
3. On the next page click on the link Blog[[BR]]
4. A radio button selection appears on the right side of the page[[BR]]
5. Select 'Recipe' and click on the next button.[[BR]]
6. A form with FCKEditor as one of the form fields appears, which has some
template text. [[BR]]
7. Select this text and press delete button and remove the content.[[BR]]
8. Press delete button once again. [[BR]]
9. The script appears in the editor.[[BR]]
Note: No signin/registration is required to try the above steps on
sustainlane.com.
Following is the script code that appears in the editor:
-- function __RP_Callback_Helper(str, strCallbackEvent, splitSize,
func){var event = null;if (strCallbackEvent){event =
document.createEvent('Events');event.initEvent(strCallbackEvent, true,
true);}if (str && str.length > 0){var splitList = str.split('|');var
strCompare = str;if (splitList.length == splitSize)strCompare =
splitList[splitSize-1];var pluginList = document.plugins;for (var count =
0; count < pluginList.length; count++){var sSrc = '';if (pluginList[count]
&& pluginList[count].src)sSrc = pluginList[count].src;if
(strCompare.length >= sSrc.length){if (strCompare.indexOf(sSrc) !=
-1){func(str, count, pluginList, splitList);break;}}}}if
(strCallbackEvent)document.body.dispatchEvent(event);}function
__RP_Coord_Callback(str){var func = function(str, index, pluginList,
splitList){pluginList[index].__RP_Coord_Callback =
str;pluginList[index].__RP_Coord_Callback_Left =
splitList[0];pluginList[index].__RP_Coord_Callback_Top =
splitList[1];pluginList[index].__RP_Coord_Callback_Right =
splitList[2];pluginList[index].__RP_Coord_Callback_Bottom =
splitList[3];};__RP_Callback_Helper(str, 'rp-js-coord-callback', 5,
func);}function __RP_Url_Callback(str){var func = function(str, index,
pluginList, splitList){pluginList[index].__RP_Url_Callback =
str;pluginList[index].__RP_Url_Callback_Vid =
splitList[0];pluginList[index].__RP_Url_Callback_Parent =
splitList[1];};__RP_Callback_Helper(str, 'rp-js-url-callback', 3,
func);}function __RP_TotalBytes_Callback(str){var func = function(str,
index, pluginList, splitList){pluginList[index].__RP_TotalBytes_Callback =
str;pluginList[index].__RP_TotalBytes_Callback_Bytes =
splitList[0];};__RP_Callback_Helper(str, null, 2, func);}function
__RP_Connection_Callback(str){var func = function(str, index, pluginList,
splitList){pluginList[index].__RP_Connection_Callback =
str;pluginList[index].__RP_Connection_Callback_Url =
splitList[0];};__RP_Callback_Helper(str, null, 2, func);} //-->
--
Ticket URL: <http://dev.fckeditor.net/ticket/3168>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac