document link_context_toolbar.

This commit is contained in:
Davit Barbakadze
2016-11-07 16:40:28 +04:00
parent c4ce93859d
commit be336c1705
2 changed files with 23 additions and 0 deletions
+1
View File
@@ -250,6 +250,7 @@
- url: "link"
pages:
- url: "#default_link_target"
- url: "#link_context_toolbar"
- url: "#link_assume_external_targets"
- url: "#link_class_list"
- url: "#link_list"
+22
View File
@@ -46,6 +46,28 @@ tinymce.init({
});
```
### `link_context_toolbar`
By default links are defunct in TinyMCE, it is not possible to open them directly from the editor. Setting `link_context_toolbar` to *true* will enable context toolbar on every link, with shortcut functions to open the link, modify it or - remove. External links will be opened in a separate tab, while relative ones will cause scroll to a target within the editor (if the target is found).
**Type:** `Boolean`
**Default Value:** `false`
**Possible Values:** `true`, `false`
##### Example
```js
tinymce.init({
selector: "textarea",
plugins: "link",
menubar: "insert",
toolbar: "link"
link_context_toolbar: true
});
```
### `link_assume_external_targets`
This option allows you to set whether TinyMCE will prompt the user to prepend a `http://` prefix if the supplied link does not already contain a protocol prefix.