File tree Expand file tree Collapse file tree
suggestededits-access-feedback
suggestededits-access-read
suggestededits-auto-approve Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,15 +13,11 @@ tinymce.init({
1313 suggestededits_model : model ,
1414 suggestededits_access : 'feedback' , // Set this value to restrict the permissions in the Suggested Edits view
1515 suggestededits_content : 'html' ,
16-
16+ view_show : 'suggestededits' ,
1717 user_id : 'kai-nakamura' ,
1818 fetch_users : ( userIds ) => Promise . all ( userIds
1919 . map ( ( userId ) =>
2020 fetch ( `${ API_URL } /${ userId } ` )
2121 . then ( ( response ) => response . json ( ) )
22- . catch ( ( ) => ( { id : userId } ) ) ) ) ,
23-
24- init_instance_callback : ( editor ) => {
25- editor . execCommand ( 'suggestededits' ) ;
26- }
22+ . catch ( ( ) => ( { id : userId } ) ) ) )
2723} ) ;
Original file line number Diff line number Diff line change @@ -13,15 +13,11 @@ tinymce.init({
1313 suggestededits_model : model ,
1414 suggestededits_access : 'read' , // Set this value to restrict the permissions in the Suggested Edits view
1515 suggestededits_content : 'html' ,
16-
16+ view_show : 'suggestededits' ,
1717 user_id : 'kai-nakamura' ,
1818 fetch_users : ( userIds ) => Promise . all ( userIds
1919 . map ( ( userId ) =>
2020 fetch ( `${ API_URL } /${ userId } ` )
2121 . then ( ( response ) => response . json ( ) )
22- . catch ( ( ) => ( { id : userId } ) ) ) ) ,
23-
24- init_instance_callback : ( editor ) => {
25- editor . execCommand ( 'suggestededits' ) ;
26- }
22+ . catch ( ( ) => ( { id : userId } ) ) ) )
2723} ) ;
Original file line number Diff line number Diff line change @@ -14,15 +14,11 @@ tinymce.init({
1414 suggestededits_access : 'full' ,
1515 suggestededits_content : 'html' ,
1616 suggestededits_auto_approve : true ,
17-
17+ view_show : 'suggestededits' ,
1818 user_id : 'kai-nakamura' ,
1919 fetch_users : ( userIds ) => Promise . all ( userIds
2020 . map ( ( userId ) =>
2121 fetch ( `${ API_URL } /${ userId } ` )
2222 . then ( ( response ) => response . json ( ) )
23- . catch ( ( ) => ( { id : userId } ) ) ) ) ,
24-
25- init_instance_callback : ( editor ) => {
26- editor . execCommand ( 'suggestededits' ) ;
27- }
23+ . catch ( ( ) => ( { id : userId } ) ) ) )
2824} ) ;
Original file line number Diff line number Diff line change @@ -13,15 +13,11 @@ tinymce.init({
1313 suggestededits_model : model ,
1414 suggestededits_access : 'full' ,
1515 suggestededits_content : 'html' ,
16-
16+ view_show : 'suggestededits' ,
1717 user_id : 'kai-nakamura' ,
1818 fetch_users : ( userIds ) => Promise . all ( userIds
1919 . map ( ( userId ) =>
2020 fetch ( `${ API_URL } /${ userId } ` )
2121 . then ( ( response ) => response . json ( ) )
22- . catch ( ( ) => ( { id : userId } ) ) ) ) ,
23-
24- init_instance_callback : ( editor ) => {
25- editor . execCommand ( 'suggestededits' ) ;
26- }
22+ . catch ( ( ) => ( { id : userId } ) ) ) )
2723} ) ;
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ include::partial$configuration/suggestededits_access.adoc[leveloffset=+1]
129129
130130include::partial$configuration/suggestededits_auto_approve.adoc[leveloffset=+1]
131131
132- include::partial$plugins/suggestededits-open-view.adoc[]
132+ include::partial$plugins/suggestededits-open-view.adoc[leveloffset=+1 ]
133133
134134include::partial$configuration/user_id.adoc[leveloffset=+1]
135135
Original file line number Diff line number Diff line change 1- == Show view on editor load
1+ [[view_show]]
2+ == `+view_show+`
23
34The xref:custom-view.adoc#view_show[`+view_show+`] option can be used to show the {pluginname} view when the editor is loaded.
45
You can’t perform that action at this time.
0 commit comments