Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to insert Color Toolbar and Background Color #340

Open
vkzunited opened this issue Apr 2, 2017 · 2 comments
Open

How to insert Color Toolbar and Background Color #340

vkzunited opened this issue Apr 2, 2017 · 2 comments

Comments

@vkzunited
Copy link
Contributor

vkzunited commented Apr 2, 2017

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,
`

@ThomasDaheim
Copy link

Perfect, thanks a lot!

@jstokes75
Copy link

This should be made default! also add to android app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants