client/js/defaults.js
author rougeronj
Thu, 01 Oct 2015 17:16:06 +0200
changeset 560 05a4380227f3
parent 554 32c7378d1c28
child 597 ebdd1d769158
permissions -rw-r--r--
- Renames and changes default options - Update Readme and some comments
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
     1
Rkns.defaults = {
297
7de2652f7ee8 SaveAs project client side
ymh <ymh.work@gmail.com>
parents: 270
diff changeset
     2
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
     3
    language: (navigator.language || navigator.userLanguage || "en"),
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
     4
        /* GUI Language */
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
     5
    container: "renkan",
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
     6
        /* GUI Container DOM element ID */
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
     7
    search: [],
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
     8
        /* List of Search Engines */
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
     9
    bins: [],
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    10
           /* List of Bins */
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    11
    static_url: "",
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    12
        /* URL for static resources */
445
705a2e9c6c9d Add popup_editor and editor_panel option to allow the editor panel to bin in an external div
rougeronj
parents: 414
diff changeset
    13
    popup_editor: true,
447
e246651b6626 replace tabs by spaces
rougeronj
parents: 445
diff changeset
    14
        /* show the node editor as a popup inside the renkan view */
445
705a2e9c6c9d Add popup_editor and editor_panel option to allow the editor panel to bin in an external div
rougeronj
parents: 414
diff changeset
    15
    editor_panel: 'editor-panel',
447
e246651b6626 replace tabs by spaces
rougeronj
parents: 445
diff changeset
    16
        /* GUI continer DOM element ID of the editor panel */
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    17
    show_bins: true,
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    18
        /* Show bins in left column */
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    19
    properties: [],
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    20
        /* Semantic properties for edges */
188
50b3287d06dd Added a basic space editor
veltr
parents: 185
diff changeset
    21
    show_editor: true,
50b3287d06dd Added a basic space editor
veltr
parents: 185
diff changeset
    22
        /* Show the graph editor... Setting this to "false" only shows the bins part ! */
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    23
    read_only: false,
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    24
        /* Allows editing of renkan without changing the rest of the GUI. Can be switched on/off on the fly to block/enable editing */
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    25
    editor_mode: true,
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    26
        /* Switch for Publish/Edit GUI. If editor_mode is false, read_only will be true.  */
322
5897669370f4 rename for manual_save
cavaliet
parents: 297
diff changeset
    27
    manual_save: false,
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    28
        /* In snapshot mode, clicking on the floppy will save a snapshot. Otherwise, it will show the connection status */
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    29
    show_top_bar: true,
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    30
        /* Show the top bar, (title, buttons, users) */
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    31
    default_user_color: "#303030",
519
b94a34c139c1 update parameters function to accept idView parameter
rougeronj
parents: 515
diff changeset
    32
    size_bug_fix: false,
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    33
        /* Resize the canvas after load (fixes a bug on iPad and FF Mac) */
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    34
    force_resize: false,
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    35
    allow_double_click: true,
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    36
        /* Allows Double Click to create a node on an empty background */
211
d87f6bdee43d upgrade libs + add no minified versions of libs + improve build + allow disabling zoom on scroll
ymh <ymh.work@gmail.com>
parents: 198
diff changeset
    37
    zoom_on_scroll: true,
d87f6bdee43d upgrade libs + add no minified versions of libs + improve build + allow disabling zoom on scroll
ymh <ymh.work@gmail.com>
parents: 198
diff changeset
    38
        /* Allows to use the scrollwheel to zoom */
176
f3da1f26f949 Silently hide edges that go to no nodes
veltr
parents: 175
diff changeset
    39
    element_delete_delay: 0,
174
756cfa6570d2 Setting element_delete_delay now shows remove confirm dialog
veltr
parents: 173
diff changeset
    40
        /* Delay between clicking on the bin on an element and really deleting it
756cfa6570d2 Setting element_delete_delay now shows remove confirm dialog
veltr
parents: 173
diff changeset
    41
           Set to 0 for delete confirm */
173
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
    42
    autoscale_padding: 50,
403
96781c1a8bbe correct resizing problems especially in next firefox
ymh <ymh.work@gmail.com>
parents: 385
diff changeset
    43
    resize: true,
458
423bdf56d103 migrated to style, added dash style to client + small refactoring for shapes + triangle
ymh <ymh.work@gmail.com>
parents: 414
diff changeset
    44
412
1ebaa106b580 add no zoom option
ymh <ymh.work@gmail.com>
parents: 403
diff changeset
    45
    /* zoom options */
1ebaa106b580 add no zoom option
ymh <ymh.work@gmail.com>
parents: 403
diff changeset
    46
    show_zoom: true,
1ebaa106b580 add no zoom option
ymh <ymh.work@gmail.com>
parents: 403
diff changeset
    47
        /* show zoom buttons */
414
276042cb477c correct fix size, improve control on view save button and related init state
ymh <ymh.work@gmail.com>
parents: 412
diff changeset
    48
    save_view: true,
276042cb477c correct fix size, improve control on view save button and related init state
ymh <ymh.work@gmail.com>
parents: 412
diff changeset
    49
        /* show buttons to save view */
560
05a4380227f3 - Renames and changes default options
rougeronj
parents: 554
diff changeset
    50
    view_force_autoscale: true,
05a4380227f3 - Renames and changes default options
rougeronj
parents: 554
diff changeset
    51
        /* Force autoscale when the Renkan is loaded */
05a4380227f3 - Renames and changes default options
rougeronj
parents: 554
diff changeset
    52
    view_show_hiddennodes: true,
05a4380227f3 - Renames and changes default options
rougeronj
parents: 554
diff changeset
    53
        /* Show all the node when the Renkan is loaded */
524
904effa4b6d7 improve view management:
rougeronj
parents: 519
diff changeset
    54
    default_index_view: -1,
554
32c7378d1c28 - Fix the behavior of views and parameters
rougeronj
parents: 547
diff changeset
    55
        
511
4a48a1a9fd1e update the url on papershift or zoom
rougeronj
parents: 487
diff changeset
    56
    /* URL parsing */
547
0ce3dcdf24f7 - add option to prevent url parameters behavior
rougeronj
parents: 530
diff changeset
    57
    url_parameters: true,
0ce3dcdf24f7 - add option to prevent url parameters behavior
rougeronj
parents: 530
diff changeset
    58
        /* accept or not hash parameters in the url */
0ce3dcdf24f7 - add option to prevent url parameters behavior
rougeronj
parents: 530
diff changeset
    59
    update_url: true,
511
4a48a1a9fd1e update the url on papershift or zoom
rougeronj
parents: 487
diff changeset
    60
        /* update the url each time the paper shift or on zoom in/out, with the serialized view (offset and scale) */
554
32c7378d1c28 - Fix the behavior of views and parameters
rougeronj
parents: 547
diff changeset
    61
        /* Considered as false if url_parameters is false */
511
4a48a1a9fd1e update the url on papershift or zoom
rougeronj
parents: 487
diff changeset
    62
    
458
423bdf56d103 migrated to style, added dash style to client + small refactoring for shapes + triangle
ymh <ymh.work@gmail.com>
parents: 414
diff changeset
    63
190
a9040a7c47d9 Some changes for standalone app compatibility
veltr
parents: 188
diff changeset
    64
    /* TOP BAR BUTTONS */
196
2a2fcec209d0 Added in-graph search
veltr
parents: 190
diff changeset
    65
    show_search_field: true,
190
a9040a7c47d9 Some changes for standalone app compatibility
veltr
parents: 188
diff changeset
    66
    show_user_list: true,
198
d3737b90a66b Allow user name and color editing
veltr
parents: 196
diff changeset
    67
    user_name_editable: true,
d3737b90a66b Allow user name and color editing
veltr
parents: 196
diff changeset
    68
    user_color_editable: true,
364
4b37ff239933 Add option show_user_color to hide or show the color of the user
rougeronj
parents: 330
diff changeset
    69
    show_user_color: true,
190
a9040a7c47d9 Some changes for standalone app compatibility
veltr
parents: 188
diff changeset
    70
    show_save_button: true,
297
7de2652f7ee8 SaveAs project client side
ymh <ymh.work@gmail.com>
parents: 270
diff changeset
    71
    show_export_button: true,
190
a9040a7c47d9 Some changes for standalone app compatibility
veltr
parents: 188
diff changeset
    72
    show_open_button: false,
a9040a7c47d9 Some changes for standalone app compatibility
veltr
parents: 188
diff changeset
    73
    show_addnode_button: true,
a9040a7c47d9 Some changes for standalone app compatibility
veltr
parents: 188
diff changeset
    74
    show_addedge_button: true,
a9040a7c47d9 Some changes for standalone app compatibility
veltr
parents: 188
diff changeset
    75
    show_bookmarklet: true,
a9040a7c47d9 Some changes for standalone app compatibility
veltr
parents: 188
diff changeset
    76
    show_fullscreen_button: true,
a9040a7c47d9 Some changes for standalone app compatibility
veltr
parents: 188
diff changeset
    77
    home_button_url: false,
a9040a7c47d9 Some changes for standalone app compatibility
veltr
parents: 188
diff changeset
    78
    home_button_title: "Home",
297
7de2652f7ee8 SaveAs project client side
ymh <ymh.work@gmail.com>
parents: 270
diff changeset
    79
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    80
    /* MINI-MAP OPTIONS */
297
7de2652f7ee8 SaveAs project client side
ymh <ymh.work@gmail.com>
parents: 270
diff changeset
    81
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    82
    show_minimap: true,
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    83
        /* Show a small map at the bottom right */
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    84
    minimap_width: 160,
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    85
    minimap_height: 120,
173
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
    86
    minimap_padding: 20,
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    87
    minimap_background_color: "#ffffff",
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    88
    minimap_border_color: "#cccccc",
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    89
    minimap_highlight_color: "#ffff00",
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    90
    minimap_highlight_weight: 5,
458
423bdf56d103 migrated to style, added dash style to client + small refactoring for shapes + triangle
ymh <ymh.work@gmail.com>
parents: 414
diff changeset
    91
297
7de2652f7ee8 SaveAs project client side
ymh <ymh.work@gmail.com>
parents: 270
diff changeset
    92
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    93
    /* EDGE/NODE COMMON OPTIONS */
297
7de2652f7ee8 SaveAs project client side
ymh <ymh.work@gmail.com>
parents: 270
diff changeset
    94
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    95
    buttons_background: "#202020",
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    96
    buttons_label_color: "#c000c0",
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
    97
    buttons_label_font_size: 9,
297
7de2652f7ee8 SaveAs project client side
ymh <ymh.work@gmail.com>
parents: 270
diff changeset
    98
462
255b66d1ce78 remove magical constant, put ghost opacity in the defaults.
ymh <ymh.work@gmail.com>
parents: 461
diff changeset
    99
    ghost_opacity : 0.3,
255b66d1ce78 remove magical constant, put ghost opacity in the defaults.
ymh <ymh.work@gmail.com>
parents: 461
diff changeset
   100
        /* opacity when the hidden element is revealed */
458
423bdf56d103 migrated to style, added dash style to client + small refactoring for shapes + triangle
ymh <ymh.work@gmail.com>
parents: 414
diff changeset
   101
    default_dash_array : [4, 5],
462
255b66d1ce78 remove magical constant, put ghost opacity in the defaults.
ymh <ymh.work@gmail.com>
parents: 461
diff changeset
   102
        /* dash line genometry */
458
423bdf56d103 migrated to style, added dash style to client + small refactoring for shapes + triangle
ymh <ymh.work@gmail.com>
parents: 414
diff changeset
   103
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   104
    /* NODE DISPLAY OPTIONS */
297
7de2652f7ee8 SaveAs project client side
ymh <ymh.work@gmail.com>
parents: 270
diff changeset
   105
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   106
    show_node_circles: true,
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   107
        /* Show circles for nodes */
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   108
    clip_node_images: true,
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   109
        /* Constraint node images to circles */
185
ad8c900d87e5 Added optional fill circle mode
veltr
parents: 176
diff changeset
   110
    node_images_fill_mode: false,
ad8c900d87e5 Added optional fill circle mode
veltr
parents: 176
diff changeset
   111
        /* Set to false for "letterboxing" (height/width of node adapted to show full image)
ad8c900d87e5 Added optional fill circle mode
veltr
parents: 176
diff changeset
   112
           Set to true for "crop" (adapted to fill circle) */
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   113
    node_size_base: 25,
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   114
    node_stroke_width: 2,
459
98cae534083d add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
   115
    node_stroke_max_width: 12,
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   116
    selected_node_stroke_width: 4,
459
98cae534083d add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
   117
    selected_node_stroke_max_width: 24,
98cae534083d add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
   118
    node_stroke_witdh_scale: 5,
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   119
    node_fill_color: "#ffffff",
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   120
    highlighted_node_fill_color: "#ffff00",
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   121
    node_label_distance: 5,
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   122
        /* Vertical distance between node and label */
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   123
    node_label_max_length: 60,
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   124
        /* Maximum displayed text length */
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   125
    label_untitled_nodes: "(untitled)",
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   126
        /* Label to display on untitled nodes */
503
18cb4c4c4e5e add parameter to control editor opacity
ymh <ymh.work@gmail.com>
parents: 489
diff changeset
   127
    hide_nodes: true,
489
7f25a4453865 update renkan server deploiement
ymh <ymh.work@gmail.com>
parents: 487
diff changeset
   128
        /* allow hide/show nodes */
330
4f92e61f87ba change shape in node editor
cavaliet
parents: 322
diff changeset
   129
    change_shapes: true,
4f92e61f87ba change shape in node editor
cavaliet
parents: 322
diff changeset
   130
        /* Change shapes enabled */
482
a55c33989404 add type selector in the node editor
rougeronj
parents: 470
diff changeset
   131
    change_types: true,
a55c33989404 add type selector in the node editor
rougeronj
parents: 470
diff changeset
   132
    /* Change type enabled */
503
18cb4c4c4e5e add parameter to control editor opacity
ymh <ymh.work@gmail.com>
parents: 489
diff changeset
   133
482
a55c33989404 add type selector in the node editor
rougeronj
parents: 470
diff changeset
   134
    /* NODE EDITOR TEMPLATE*/
503
18cb4c4c4e5e add parameter to control editor opacity
ymh <ymh.work@gmail.com>
parents: 489
diff changeset
   135
482
a55c33989404 add type selector in the node editor
rougeronj
parents: 470
diff changeset
   136
    node_editor_templates: {
a55c33989404 add type selector in the node editor
rougeronj
parents: 470
diff changeset
   137
        "default": "templates/nodeeditor_readonly.html",
a55c33989404 add type selector in the node editor
rougeronj
parents: 470
diff changeset
   138
        "video": "templates/nodeeditor_video.html"
a55c33989404 add type selector in the node editor
rougeronj
parents: 470
diff changeset
   139
    },
297
7de2652f7ee8 SaveAs project client side
ymh <ymh.work@gmail.com>
parents: 270
diff changeset
   140
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   141
    /* EDGE DISPLAY OPTIONS */
297
7de2652f7ee8 SaveAs project client side
ymh <ymh.work@gmail.com>
parents: 270
diff changeset
   142
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   143
    edge_stroke_width: 2,
459
98cae534083d add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
   144
    edge_stroke_max_width: 12,
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   145
    selected_edge_stroke_width: 4,
459
98cae534083d add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
   146
    selected_edge_stroke_max_width: 24,
98cae534083d add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
   147
    edge_stroke_witdh_scale: 5,
98cae534083d add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
   148
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   149
    edge_label_distance: 0,
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   150
    edge_label_max_length: 20,
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   151
    edge_arrow_length: 18,
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   152
    edge_arrow_width: 12,
459
98cae534083d add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
   153
    edge_arrow_max_width: 32,
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   154
    edge_gap_in_bundles: 12,
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   155
    label_untitled_edges: "",
297
7de2652f7ee8 SaveAs project client side
ymh <ymh.work@gmail.com>
parents: 270
diff changeset
   156
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   157
    /* CONTEXTUAL DISPLAY (TOOLTIP OR EDITOR) OPTIONS */
297
7de2652f7ee8 SaveAs project client side
ymh <ymh.work@gmail.com>
parents: 270
diff changeset
   158
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   159
    tooltip_width: 275,
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   160
    tooltip_padding: 10,
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   161
    tooltip_margin: 15,
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   162
    tooltip_arrow_length : 20,
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   163
    tooltip_arrow_width : 40,
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   164
    tooltip_top_color: "#f0f0f0",
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   165
    tooltip_bottom_color: "#d0d0d0",
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   166
    tooltip_border_color: "#808080",
173
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
   167
    tooltip_border_width: 1,
503
18cb4c4c4e5e add parameter to control editor opacity
ymh <ymh.work@gmail.com>
parents: 489
diff changeset
   168
    tooltip_opacity: 0.8,
297
7de2652f7ee8 SaveAs project client side
ymh <ymh.work@gmail.com>
parents: 270
diff changeset
   169
468
364c367df7fc add rich text editor for description
ymh <ymh.work@gmail.com>
parents: 462
diff changeset
   170
    richtext_editor_config: {
364c367df7fc add rich text editor for description
ymh <ymh.work@gmail.com>
parents: 462
diff changeset
   171
        toolbarGroups: [
364c367df7fc add rich text editor for description
ymh <ymh.work@gmail.com>
parents: 462
diff changeset
   172
            { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
364c367df7fc add rich text editor for description
ymh <ymh.work@gmail.com>
parents: 462
diff changeset
   173
            { name: 'clipboard',   groups: [ 'clipboard', 'undo' ] },
364c367df7fc add rich text editor for description
ymh <ymh.work@gmail.com>
parents: 462
diff changeset
   174
            '/',
364c367df7fc add rich text editor for description
ymh <ymh.work@gmail.com>
parents: 462
diff changeset
   175
	        { name: 'styles'},
364c367df7fc add rich text editor for description
ymh <ymh.work@gmail.com>
parents: 462
diff changeset
   176
        ],
470
47308aa6ce94 correction for rich text editor. correct problem of empty description. make sure that the editor toolbr close
ymh <ymh.work@gmail.com>
parents: 468
diff changeset
   177
        removePlugins : 'colorbutton,find,flash,font,forms,iframe,image,newpage,smiley,specialchar,stylescombo,templates',
468
364c367df7fc add rich text editor for description
ymh <ymh.work@gmail.com>
parents: 462
diff changeset
   178
    },
364c367df7fc add rich text editor for description
ymh <ymh.work@gmail.com>
parents: 462
diff changeset
   179
173
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
   180
    /* NODE EDITOR OPTIONS */
297
7de2652f7ee8 SaveAs project client side
ymh <ymh.work@gmail.com>
parents: 270
diff changeset
   181
173
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
   182
    show_node_editor_uri: true,
530
9823b527c3a1 add rich text editor on title
rougeronj
parents: 524
diff changeset
   183
    show_node_editor_title: true,
9823b527c3a1 add rich text editor on title
rougeronj
parents: 524
diff changeset
   184
    show_node_editor_title_richtext: true,
173
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
   185
    show_node_editor_description: true,
468
364c367df7fc add rich text editor for description
ymh <ymh.work@gmail.com>
parents: 462
diff changeset
   186
    show_node_editor_description_richtext: true,
173
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
   187
    show_node_editor_size: true,
458
423bdf56d103 migrated to style, added dash style to client + small refactoring for shapes + triangle
ymh <ymh.work@gmail.com>
parents: 414
diff changeset
   188
    show_node_editor_style: true,
459
98cae534083d add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
   189
    show_node_editor_style_color: true,
98cae534083d add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
   190
    show_node_editor_style_dash: true,
98cae534083d add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
   191
    show_node_editor_style_thickness: true,
173
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
   192
    show_node_editor_image: true,
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
   193
    show_node_editor_creator: true,
385
29dcaa4c1748 add option to hide image upload
ymh <ymh.work@gmail.com>
parents: 364
diff changeset
   194
    allow_image_upload: true,
190
a9040a7c47d9 Some changes for standalone app compatibility
veltr
parents: 188
diff changeset
   195
    uploaded_image_max_kb: 500,
297
7de2652f7ee8 SaveAs project client side
ymh <ymh.work@gmail.com>
parents: 270
diff changeset
   196
468
364c367df7fc add rich text editor for description
ymh <ymh.work@gmail.com>
parents: 462
diff changeset
   197
173
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
   198
    /* NODE TOOLTIP OPTIONS */
297
7de2652f7ee8 SaveAs project client side
ymh <ymh.work@gmail.com>
parents: 270
diff changeset
   199
173
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
   200
    show_node_tooltip_uri: true,
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
   201
    show_node_tooltip_description: true,
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
   202
    show_node_tooltip_color: true,
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
   203
    show_node_tooltip_image: true,
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
   204
    show_node_tooltip_creator: true,
297
7de2652f7ee8 SaveAs project client side
ymh <ymh.work@gmail.com>
parents: 270
diff changeset
   205
173
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
   206
    /* EDGE EDITOR OPTIONS */
297
7de2652f7ee8 SaveAs project client side
ymh <ymh.work@gmail.com>
parents: 270
diff changeset
   207
173
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
   208
    show_edge_editor_uri: true,
459
98cae534083d add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
   209
    show_edge_editor_style: true,
98cae534083d add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
   210
    show_edge_editor_style_color: true,
98cae534083d add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
   211
    show_edge_editor_style_dash: true,
98cae534083d add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
   212
    show_edge_editor_style_thickness: true,
98cae534083d add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
   213
    show_edge_editor_style_arrow: true,
173
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
   214
    show_edge_editor_direction: true,
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
   215
    show_edge_editor_nodes: true,
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
   216
    show_edge_editor_creator: true,
297
7de2652f7ee8 SaveAs project client side
ymh <ymh.work@gmail.com>
parents: 270
diff changeset
   217
173
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
   218
    /* EDGE TOOLTIP OPTIONS */
297
7de2652f7ee8 SaveAs project client side
ymh <ymh.work@gmail.com>
parents: 270
diff changeset
   219
173
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
   220
    show_edge_tooltip_uri: true,
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
   221
    show_edge_tooltip_color: true,
009427475db2 Improvements for MDP and CG
veltr
parents: 172
diff changeset
   222
    show_edge_tooltip_nodes: true,
468
364c367df7fc add rich text editor for description
ymh <ymh.work@gmail.com>
parents: 462
diff changeset
   223
    show_edge_tooltip_creator: true,
297
7de2652f7ee8 SaveAs project client side
ymh <ymh.work@gmail.com>
parents: 270
diff changeset
   224
172
9b8df8d779f5 Corrected line delimiters
veltr
parents: 169
diff changeset
   225
};