x: 0,\r
y: 0,\r
width: @parsed_settings()['speech_balloon']['default_width'],\r
- eight: @parsed_settings()['speech_balloon']['default_height'],\r
+ height: @parsed_settings()['speech_balloon']['default_height'],\r
r: @parsed_settings()['speech_balloon']['default_r']\r
})\r
@select_system_picture()\r
y: s['y_rate'],\r
width: s['width_rate'],\r
height: s['height_rate'],\r
- quotes: '',\r
+ quotes: @parsed_settings()['speech_balloon']['quotes'],\r
font_size: @parsed_settings()['speech_balloon']['default_font_size'],\r
text_align: @parsed_settings()['speech_balloon']['default_text_align'],\r
fore_color: @parsed_settings()['speech_balloon']['default_fore_color'],\r
x: 0,\r
y: 0,\r
width: @parsed_settings()['speech_balloon']['default_width'],\r
- eight: @parsed_settings()['speech_balloon']['default_height'],\r
+ height: @parsed_settings()['speech_balloon']['default_height'],\r
r: 0\r
})\r
@select_system_picture()\r
y: s['y_rate'],\r
width: s['width_rate'],\r
height: s['height_rate'],\r
- quotes: '',\r
+ quotes: @parsed_settings()['speech_balloon']['quotes'],\r
font_size: @parsed_settings()['speech_balloon']['default_font_size'],\r
text_align: @parsed_settings()['speech_balloon']['default_text_align'],\r
fore_color: @parsed_settings()['speech_balloon']['default_fore_color'],\r
x: 0,\r
y: 0,\r
width: @parsed_settings()['speech_balloon']['default_width'],\r
- eight: @parsed_settings()['speech_balloon']['default_height'],\r
+ height: @parsed_settings()['speech_balloon']['default_height'],\r
r: 0\r
})\r
@select_system_picture()\r
y: s['y_rate'],\r
width: s['width_rate'],\r
height: s['height_rate'],\r
- quotes: '',\r
+ quotes: @parsed_settings()['speech_balloon']['quotes'],\r
font_size: @parsed_settings()['speech_balloon']['default_font_size'],\r
text_align: @parsed_settings()['speech_balloon']['default_text_align'],\r
fore_color: @parsed_settings()['speech_balloon']['default_fore_color']\r
z = tab.label.z()\r
z-- if z > new_tab_z # from 0, 1, new tab, 3... to 1, 2, 3...\r
tab.element.set({\r
- z: z\r
+ z: z + 1\r
}, {silent: true})\r
tab.element.trigger('sort')\r
\r
@element = options.element\r
\r
dom_id: () ->\r
- super() + '-' + @element.get('id') # use tab index\r
+ super() + '-' + @element.cid # use tab index\r
\r
class Editor.EditorModule.DockModule.TabModule.ElementBoardLabel extends Editor.EditorModule.DockModule.TabModule.BoardLabel\r
\r
{\r
speech_balloon_template_id: speech_balloon_template.get('id'),\r
speech_balloon_template_module_name: speech_balloon_template.get('module_name'),\r
- speech_balloon_template_settings: speech_balloon_template.get('settings')\r
}\r
\r
speech_balloon: () ->\r
xhr = @sync(method, this, {\r
attrs: {panel: attrs},\r
success: (model, response, options) =>\r
+ _this.set(model, {silent: true})\r
_this.trigger('save:success', _this, response)\r
error: (model, response, options) =>\r
_this.trigger('save:fail', _this, response)\r
{\r
speech_balloon_template_id: speech_balloon_template.get('id'),\r
speech_balloon_template_module_name: speech_balloon_template.get('module_name'),\r
- speech_balloon_template_settings: speech_balloon_template.get('settings')\r
writing_format_id: writing_format.get('id'),\r
writing_format_module_name: writing_format.get('module_name'),\r
- writing_format_template_settings: writing_format.get('settings')\r
}\r
\r
speech_balloon: () ->\r
speech_balloon_template = templates.speech_balloon_template\r
{\r
speech_balloon_template_id: speech_balloon_template.get('id'),\r
- speech_balloon_template_module_name: speech_balloon_template.get('module_name'),\r
- speech_balloon_template_settings: speech_balloon_template.get('settings')\r
+ speech_balloon_template_module_name: speech_balloon_template.get('module_name')\r
}\r
\r
panel: () ->\r
updated_html_format format
updated_json_format format
else
+ p @item.errors
format.html {
flash[:notice] = I18n.t('flash.notice.not_updated', :model => @my_model_class.model_name.human)
@editor = Editor::PanelEditor.new @item, @operators