We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Border shades dialog

Thread ID:

Created:

Updated:

Platform:

Replies:

141809 Jan 5,2019 03:55 AM UTC Jan 7,2019 06:39 AM UTC JavaScript - EJ 2 1
loading
Tags: DocumentEditor
sampurnima kovi
Asked On January 5, 2019 03:55 AM UTC

When focus is not in a table, click to launch border shades dialog you will see

Uncaught RangeError: Maximum call stack size exceeded
    at Object.<anonymous> (VM1871 cse_element__en.js:450)
    at e (layout.js:1000)
    at Ik (VM1871 cse_element__en.js:444)
    at Object.<anonymous> (VM1871 cse_element__en.js:450)
    at e (layout.js:1000)
    at Ik (VM1871 cse_element__en.js:444)
    at Object.<anonymous> (VM1871 cse_element__en.js:450)
    at e (layout.js:1000)
    at Ik (VM1871 cse_element__en.js:444)
    at Object.<anonymous> (VM1871 cse_element__en.js:450)
2document-editor-container.js:453 Uncaught TypeError: Cannot read property 'tableFormat' of undefined
    at e.loadBordersShadingsPropertiesDialog (document-editor-container.js:453)
    at e.show (document-editor-container.js:453)
    at r.showBordersAndShadingDialog (document-editor-container.js:453)
    at r.showDialog (document-editor-container.js:453)
    at HTMLButtonElement.eval (index.ts:22)

-

Ramya Thirugnanam [Syncfusion]
Replied On January 7, 2019 06:39 AM UTC

Hi Sampurnima, 
 
We can reproduce the reported issue in border and shading dialog. But, this an invalid approach to open BorderAndShading dialog without current focus in table. Since, borders and shading dialog is depending on current focused table for manipulation option in it. 
 
So, please add the below validation in your sample to ensure that current selection in table to resolve this issue. 
 
// Condition to check selection is in table or not  
if (documenteditor.selection.contextType.indexOf('Table') !== -1) { 
//add you code hear 
    documenteditor.showDialog("BordersAndShading"); 
} 
 
 
Regards, 
Ramya T 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;