Plugin Directory

Changeset 2259544 for tinymce-advanced


Ignore:
Timestamp:
03/12/2020 05:40:10 AM (6 years ago)
Author:
azaozz
Message:

TMA, small tweaks.

Location:
tinymce-advanced/branches/dev/src/block-editor
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • tinymce-advanced/branches/dev/src/block-editor/classic-paragraph/classic-paragraph.js

    r2241528 r2259544  
    1111import transforms from './transforms';
    1212
    13 // import metadata from './block.json'; // ugh... tools
     13// import metadata from './block.json'; // ugh... needs 1/2 gig of "tools dependencies"?!?
    1414const metadata = {
    1515    "name": "tadv/classic-paragraph",
     
    4545    },
    4646
    47     // Working?
     47    // Is this working?
    4848    merge( attributes, attributesToMerge ) {
    4949        return {
  • tinymce-advanced/branches/dev/src/block-editor/classic-paragraph/edit.js

    r2241528 r2259544  
    55const { Component, createElement } = wp.element;
    66const { BACKSPACE, DELETE, F10 } = wp.keycodes;
     7
     8// TODO
     9// const { BlockControls, BlockAlignmentToolbar } = wp.blockEditor;
    710
    811const settings = window.tadvBlockRegister;
     
    166169
    167170    render() {
    168         const { clientId, name } = this.props;
     171        const { clientId, name, attributes, setAttributes } = this.props;
     172
     173        // TODO
     174        //const width = attributes.width || null;
    169175
    170176        return [
     
    183189                className: "wp-block-freeform block-library-rich-text__tinymce tma-classic-paragraph",
    184190            } ),
     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            */
    185202        ];
    186203    }
  • tinymce-advanced/branches/dev/src/block-editor/richtext-buttons/mark.js

    r2254033 r2259544  
    1818} = wp.richText;
    1919
    20 const markIcon = createElement( SVG, { viewBox: '0 0 20 20', xmlns: 'http://www.w3.org/2000/svg', 'class': 'tadv-mark-icon' },
     20const markIcon = createElement( SVG, { viewBox: '0 0 20 20', xmlns: 'http://www.w3.org/2000/svg', className: 'dashicon tadv-mark-icon' },
    2121    createElement( Path, {
    2222        'aria-hidden': 'true',
  • tinymce-advanced/branches/dev/src/block-editor/tma-block-editor.css

    r2241528 r2259544  
    7676
    7777div.mce-menu-has-icons i.mce-ico {
    78     line-height: 16px;
     78    line-height: 18px;
     79    width: 18px;
     80    height: 18px;
    7981}
    8082
     
    156158}
    157159
     160div.mce-toolbar-grp .mce-btn i.mce-ico {
     161    font-size: 20px;
     162}
     163
    158164div.mce-widget.mce-tooltip .mce-tooltip-inner {
    159165    font-size: 13px;
Note: See TracChangeset for help on using the changeset viewer.