You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

49 lines
1.7 KiB

= Configuring the {pluginname} plugin in embedded mode
:navtitle: Embedded mode
:description: Information on configuring the Comments plugin in embedded mode
:keywords: comments, commenting, tinycomments, embedded, embedded mode
:pluginname: Comments
:plugincode: comments
== Add the {pluginname} plugin in embedded mode
To add the {pluginname} plugin in embedded mode to the {productname}, configure the following options:
[source,js]
----
tinymce.init({
selector: 'textarea', // change this value according to your html
plugins: 'tinycomments',
toolbar: 'addcomment showcomments',
tinycomments_author: 'author',
tinycomments_author_name: 'Name of the commenter',
tinycomments_mode: 'embedded'
});
----
This is the minimum recommended setup for the {pluginname} plugin in embedded mode. If the `+tinycomments_author+` and `+tinycomments_author_name+` options are not configured, all users will be assigned the name "_ANON_".
[[comments-embedded-live-demo]]
== Interactive example
liveDemo::comments-embedded[]
== Options
include::partial$configuration/tinycomments_author.adoc[leveloffset=+1]
include::partial$configuration/tinycomments_author_avatar.adoc[leveloffset=+1]
include::partial$configuration/tinycomments_author_name.adoc[leveloffset=+1]
include::partial$configuration/tinycomments_can_delete.adoc[leveloffset=+1]
include::partial$configuration/tinycomments_can_resolve.adoc[leveloffset=+1]
include::partial$configuration/tinycomments_can_delete_comment.adoc[leveloffset=+1]
include::partial$configuration/tinycomments_can_edit_comment.adoc[leveloffset=+1]
include::partial$plugins/comments-open-sidebar.adoc[]
include::partial$plugins/comments-highlighting-css.adoc[]