removed console logs and updated code for tinymce

This commit is contained in:
Arun Kumar Perumal 2022-04-11 10:54:27 +05:30
parent b0bbc9de2b
commit 90a42e0dc9
3 changed files with 11 additions and 21 deletions

View File

@ -46,17 +46,13 @@ export default class CAccordion extends React.Component<ICAccordionProps, {}> {
<Editor
id={this.props.guid + '-editor-' + index}
value={tab.Content}
init={{
init={{
content_style: "a {color:rgb(0,120,212) !important}",
plugins: 'link image table lists pageembed',
plugins: 'link image table lists media code',
menubar: 'edit insert format table lists view', // skip file
height : "240",
toolbar: 'undo redo | bold italic | alignleft aligncenter alignright | numlist bullist pageembed',
toolbar: 'undo redo | bold italic | alignleft aligncenter alignright | numlist bullist | media | code',
table_responsive_width: true,
tiny_pageembed_classes: [
{ text: 'Big embed', value: 'my-big-class' },
{ text: 'Small embed', value: 'my-small-class' }
],
table_default_styles: {
'width': '100%',
'height': 'auto'
@ -64,9 +60,9 @@ export default class CAccordion extends React.Component<ICAccordionProps, {}> {
image_advtab: true,
style_formats: [
{title: 'Headings', items: [
{title: 'Heading 1', format: 'h1'},
{title: 'Heading 2', format: 'h2'},
{title: 'Heading 3', format: 'h3'}
{title: 'Heading 1', format: 'h2'},
{title: 'Heading 2', format: 'h3'},
{title: 'Heading 3', format: 'h4'}
]}]
}}

View File

@ -35,7 +35,6 @@ export default class CTab extends React.Component<ICTabProps, {}> {
public render(): React.ReactElement<ICTabProps> {
//console.log(this.props.tabs);
if(this.props.displayMode === DisplayMode.Edit)
{
return (
@ -82,9 +81,9 @@ export default class CTab extends React.Component<ICTabProps, {}> {
image_advtab: true,
style_formats: [
{title: 'Headings', items: [
{title: 'Heading 1', format: 'h1'},
{title: 'Heading 2', format: 'h2'},
{title: 'Heading 3', format: 'h3'}
{title: 'Heading 1', format: 'h2'},
{title: 'Heading 2', format: 'h3'},
{title: 'Heading 3', format: 'h4'}
]}]
}}

View File

@ -53,8 +53,7 @@ export default class Tabs extends React.Component<ITabsProps, ITabsState> {
public findDefault(children) {
//console.log(this.defaultTab);
/* if (this.defaultTab !== undefined) {
/* if (this.defaultTab !== undefined) {
return this.defaultTab;
}*/
@ -66,7 +65,6 @@ export default class Tabs extends React.Component<ITabsProps, ITabsState> {
if (!child || !child.props || firstDefaultLink) {
return;
}
//console.log(child.type.displayName);
/* if (child.type.displayName === 'TabLink') {
firstLink = firstLink || child.props.to;
firstDefaultLink =
@ -93,8 +91,7 @@ export default class Tabs extends React.Component<ITabsProps, ITabsState> {
name,
},
) {
// console.log(typeof children);
/* if (typeof children !== 'object') {
/* if (typeof children !== 'object') {
return children;
}*/
@ -152,8 +149,6 @@ export default class Tabs extends React.Component<ITabsProps, ITabsState> {
...divProps
} = this.props;
const handleSelect = handleSelectProp || this.handleSelect;
//console.log(this.state.selectedTab);
//console.log(selectedTabProp);
const selectedTab = this.state.selectedTab ;
const children = this.transformChildren(this.props.children, {