4 * Copyright(c) 2006-2007, Ext JS, LLC.
6 * Originally Released Under LGPL - original licence link has changed is not relivant.
9 * <script type="text/javascript">
14 Roo.onReady(function(){
20 * ================ Form 2 =======================
22 mform = new Roo.form.Form({
31 '../../css/undoreset.css',
32 '/web.MediaOutreach/Pman/PressRelease/templates/images/css/editor.css'
36 xtype : 'ToolbarStandard',
37 xns : Roo.form.HtmlEditor,
42 cls : 'x-init-enable',
44 click : function (_self, e)
47 var rr = new Roo.htmleditor.BlockTable({
51 editor.editorcore.insertAtCursor(rr.toHTML());
61 text : "Add Image (BIG)",
62 cls : 'x-init-enable',
64 click : function (_self, e)
67 var rr = new Roo.htmleditor.BlockFigure({
68 image_src: 'https://picsum.photos/1000/500',
77 editor.editorcore.insertAtCursor(rr.toHTML());
87 text : "Add Image (SMALL)",
88 cls : 'x-init-enable',
90 click : function (_self, e)
93 var rr = new Roo.htmleditor.BlockFigure({
94 image_src: 'https://picsum.photos/400/300',
103 editor.editorcore.insertAtCursor(rr.toHTML());
115 xtype : 'ToolbarContext',
116 xns : Roo.form.HtmlEditor,
118 '*' : [ 'headline' ] ,
119 'TD' : [ 'underline', 'double-underline' ]
127 fieldLabel:'Biography',
130 resizable: 's' /// where the handles should got..
148 mform.render('form-ct5');
149 editor = mform.findField('bio');