Changeset 2259544 for tinymce-advanced
- Timestamp:
- 03/12/2020 05:40:10 AM (6 years ago)
- Location:
- tinymce-advanced/branches/dev/src/block-editor
- Files:
-
- 4 edited
-
classic-paragraph/classic-paragraph.js (modified) (2 diffs)
-
classic-paragraph/edit.js (modified) (3 diffs)
-
richtext-buttons/mark.js (modified) (1 diff)
-
tma-block-editor.css (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tinymce-advanced/branches/dev/src/block-editor/classic-paragraph/classic-paragraph.js
r2241528 r2259544 11 11 import transforms from './transforms'; 12 12 13 // import metadata from './block.json'; // ugh... tools13 // import metadata from './block.json'; // ugh... needs 1/2 gig of "tools dependencies"?!? 14 14 const metadata = { 15 15 "name": "tadv/classic-paragraph", … … 45 45 }, 46 46 47 // Working?47 // Is this working? 48 48 merge( attributes, attributesToMerge ) { 49 49 return { -
tinymce-advanced/branches/dev/src/block-editor/classic-paragraph/edit.js
r2241528 r2259544 5 5 const { Component, createElement } = wp.element; 6 6 const { BACKSPACE, DELETE, F10 } = wp.keycodes; 7 8 // TODO 9 // const { BlockControls, BlockAlignmentToolbar } = wp.blockEditor; 7 10 8 11 const settings = window.tadvBlockRegister; … … 166 169 167 170 render() { 168 const { clientId, name } = this.props; 171 const { clientId, name, attributes, setAttributes } = this.props; 172 173 // TODO 174 //const width = attributes.width || null; 169 175 170 176 return [ … … 183 189 className: "wp-block-freeform block-library-rich-text__tinymce tma-classic-paragraph", 184 190 } ), 191 192 /* 193 createElement( BlockControls, 194 null, 195 createElement( BlockAlignmentToolbar, { 196 value: width, 197 onChange: ( nextWidth ) => setAttributes( { width: nextWidth } ), 198 controls: [ 'center', 'wide', 'full' ], 199 } ) 200 ), 201 */ 185 202 ]; 186 203 } -
tinymce-advanced/branches/dev/src/block-editor/richtext-buttons/mark.js
r2254033 r2259544 18 18 } = wp.richText; 19 19 20 const markIcon = createElement( SVG, { viewBox: '0 0 20 20', xmlns: 'http://www.w3.org/2000/svg', 'class': 'tadv-mark-icon' },20 const markIcon = createElement( SVG, { viewBox: '0 0 20 20', xmlns: 'http://www.w3.org/2000/svg', className: 'dashicon tadv-mark-icon' }, 21 21 createElement( Path, { 22 22 'aria-hidden': 'true', -
tinymce-advanced/branches/dev/src/block-editor/tma-block-editor.css
r2241528 r2259544 76 76 77 77 div.mce-menu-has-icons i.mce-ico { 78 line-height: 16px; 78 line-height: 18px; 79 width: 18px; 80 height: 18px; 79 81 } 80 82 … … 156 158 } 157 159 160 div.mce-toolbar-grp .mce-btn i.mce-ico { 161 font-size: 20px; 162 } 163 158 164 div.mce-widget.mce-tooltip .mce-tooltip-inner { 159 165 font-size: 13px;
Note: See TracChangeset
for help on using the changeset viewer.