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({
30 bodyCls : 'undoreset undoreset mo-pr-body-content',
32 '../../css/undoreset.css',
33 '/web.MediaOutreach/Pman/PressRelease/templates/images/css/editor.css'
39 xtype : 'ToolbarStandard',
40 xns : Roo.form.HtmlEditor,
45 cls : 'x-init-enable',
47 click : function (_self, e)
50 var rr = new Roo.htmleditor.BlockTable({
54 editor.editorcore.insertAtCursor(rr.toHTML());
64 text : "Add Image (BIG)",
65 cls : 'x-init-enable',
67 click : function (_self, e)
70 var rr = new Roo.htmleditor.BlockFigure({
71 image_src: 'https://picsum.photos/1000/500',
80 editor.editorcore.insertAtCursor(rr.toHTML());
90 text : "Add Image (SMALL)",
91 cls : 'x-init-enable',
93 click : function (_self, e)
96 var rr = new Roo.htmleditor.BlockFigure({
97 image_src: 'https://picsum.photos/400/300',
106 editor.editorcore.insertAtCursor(rr.toHTML());
118 xtype : 'ToolbarContext',
119 xns : Roo.form.HtmlEditor,
121 '*' : [ 'headline' ] ,
122 'TD' : [ 'underline', 'double-underline' ]
130 fieldLabel:'Biography',
133 resizable: 's' /// where the handles should got..
151 mform.render('form-ct5');
152 editor = mform.findField('bio');