mirror of
https://github.com/pnp/sp-dev-fx-webparts.git
synced 2025-03-08 21:01:46 +00:00
removed console logs and updated code for tinymce
This commit is contained in:
parent
b0bbc9de2b
commit
90a42e0dc9
@ -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'}
|
||||
]}]
|
||||
|
||||
}}
|
||||
|
@ -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'}
|
||||
]}]
|
||||
|
||||
}}
|
||||
|
@ -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, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user