Fmstrat / Fmstrat/ownnote

How to insert Color Toolbar and Background Color

Open
#340 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
163
Forks
39
PR merge metrics
No merged PRs in 30d

Description

If you want to insert the color function e.g. to write in blue or red or with a background color simply follow these steps:

Open file
ownnote-master\js\script.js

and edit the following lines:
Line 7: insert "textcolor"
Line 12 insert toolbar containing "forecolor backcolor | "
Optional you can activate menubar in line 5
The first line would look like these

`function tinymceInit() {
tinymce.init({
selector: "div.editable",
**menubar: true,**
plugins: [
"**textcolor** advlist autolink lists link charmap print preview anchor",
"searchreplace visualblocks code fullscreen",
"insertdatetime media table contextmenu bdesk_photo autoresize"
],

extended_valid_elements: "form[name|id|action|method|enctype|accept-charset|onsubmit|onreset|target],input[id|name|type|value|size|maxlength|checked|accept|src|width|height|disabled|readonly|tabindex|accesskey|onfocus|onblur|onchange|onselect|onclick|onkeyup|onkeydown|required|style],textarea[id|name|rows|cols|maxlength|disabled|readonly|tabindex|accesskey|onfocus|onblur|onchange|onselect|onclick|onkeyup|onkeydown|required|style],option[name|id|value|selected|style],select[id|name|type|value|size|maxlength|checked|width|height|disabled|readonly|tabindex|accesskey|onfocus|onblur|onchange|onselect|onclick|multiple|style]",

toolbar: "insertfile undo redo | styleselect | bold italic strikethrough | alignleft aligncenter alignright alignjustify | **forecolor backcolor |** bullist numlist outdent indent | link bdesk_photo",
allow_html_data_urls: true,
`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.