File tree 1 file changed +1
-7
lines changed
packages/perseus-editor/src
1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,8 @@ import * as React from "react";
3
3
import _ from "underscore" ;
4
4
5
5
import DeviceFramer from "./components/device-framer" ;
6
- import Editor from "./editor" ;
7
- import IframeContentRenderer from "./iframe-content-renderer" ;
8
6
import ContentRenderer from "./content-renderer" ;
7
+ import Editor from "./editor" ;
9
8
import ItemExtrasEditor from "./item-extras-editor" ;
10
9
11
10
import type {
@@ -45,7 +44,6 @@ class ItemEditor extends React.Component<Props> {
45
44
answerArea : { } ,
46
45
} ;
47
46
48
- frame = React . createRef < IframeContentRenderer > ( ) ;
49
47
questionEditor = React . createRef < Editor > ( ) ;
50
48
itemExtrasEditor = React . createRef < ItemExtrasEditor > ( ) ;
51
49
@@ -56,10 +54,6 @@ class ItemEditor extends React.Component<Props> {
56
54
this . props . onChange ( _ ( props ) . extend ( newProps ) , cb , silent ) ;
57
55
} ;
58
56
59
- triggerPreviewUpdate : ( newData ?: any ) => void = ( newData : any ) => {
60
- this . frame . current ?. sendNewData ( newData ) ;
61
- } ;
62
-
63
57
handleEditorChange : ChangeHandler = ( newProps , cb , silent ) => {
64
58
const question = _ . extend ( { } , this . props . question , newProps ) ;
65
59
this . updateProps ( { question} , cb , silent ) ;
You can’t perform that action at this time.
0 commit comments