Opened 13 years ago

Last modified 13 years ago

#6859 closed Bug

Full page mode: Spell check dialog adds extra empty style tags — at Initial Version

Reported by: Wiktor Walc Owned by:
Priority: Normal Milestone: CKEditor 3.5
Component: UI : Spell Checker Version: 3.5
Keywords: Cc: WebSpellChecker.net

Description

When SCAYT is enabled and the spell check dialog is used to check the document, empty extra style tags are added to the document and a JavaScript error occurs.

  1. Open _samples/fullpage.html
  2. Start with:
    <html>
    	<head>
    	</head>
    	<body>
    		<p>
    			Write your email message here schol.</p>
    		<p>
    			You can also...</p>
    	</body>
    </html>
    
  3. Enable SCAYT
  4. Open the Check Spell dialog
  5. Click on Finish Checking
  6. Open the Check Spell dialog again
  7. Click on Finish Checking
  8. Result: a javascript error occurred and empty style tags are now in the document:
    <html>
    	<head>
    		<title></title>
    		<style cke_temp="2" type="text/css">
    		</style>
    		<style cke_temp="2" type="text/css">
    		</style>
    		<style cke_temp="2" type="text/css">
    		</style>
    		<style cke_temp="2" type="text/css">
    		</style>
    	</head>
    	<body class="scayt-enabled">
    		<p>
    			Write your email message here schol.</p>
    		<p>
    			You can also...</p>
    	</body>
    </html>
    

JavaScript error:

Tried to register widget with id==scayt_2 but that id is already registered http://svc.spellchecker.net/scayt26/_base.xd.js Line 880

Confirmed in Safari 5.0.3 and Firefox 3.6.13. Looks like a regression introduced in 3.5

Change History (0)

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy