Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Abstract Editor Control #216

Merged
merged 19 commits into from Aug 18, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
cf4a6c3
Register a new control type editor
mohdsayed Aug 9, 2016
d99f6d9
Remove post content editor code from addContentControl method
mohdsayed Aug 9, 2016
4986e34
Create Editor control, and register script
mohdsayed Aug 9, 2016
63de4bb
Refactor injectButton resizeEditor and updateEditorToggleExpandButton…
mohdsayed Aug 9, 2016
a9b0bcc
Add names on anonymous functions
mohdsayed Aug 9, 2016
0ad0d5a
Merge branch 'develop' of https://github.com/xwp/wp-customize-posts i…
mohdsayed Aug 12, 2016
d6e40a3
Add support for postmeta in editor control
mohdsayed Aug 12, 2016
bf516e8
Add support for multiple controls for editor
mohdsayed Aug 12, 2016
c07f02b
Add docs to the methods
mohdsayed Aug 12, 2016
05bce9a
Fix eslint and jscs issues
westonruter Aug 16, 2016
08ac7cc
Add todo to implement control.expanded
westonruter Aug 17, 2016
c4dc6c5
Implement expanded interface on EditorControl; ensure only one editor…
westonruter Aug 17, 2016
948f6fc
Merge branch 'develop' of https://github.com/xwp/wp-customize-posts i…
westonruter Aug 17, 2016
dc66191
Rename editor to post_editor; implement custom control template
westonruter Aug 18, 2016
98b7243
Add todos
westonruter Aug 18, 2016
4dde895
Add heading for editor to help indicate what the open editor is for
westonruter Aug 18, 2016
25f266d
Update post editor title ui
mohdsayed Aug 18, 2016
e4b2c44
Remove bound events when editor control is removed; eliminate anonymo…
westonruter Aug 18, 2016
ce61ab4
Only show editor heading if there is more than one editor control in …
westonruter Aug 18, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
29 changes: 28 additions & 1 deletion css/customize-posts.css
Expand Up @@ -122,6 +122,29 @@ body.customize-posts-content-editor-pane-open #customize-posts-content-editor-pa
visibility: inherit;
}

#customize-posts-content-editor-title {
position: absolute;
text-overflow: ellipsis;
width: 10%;
white-space: nowrap;
overflow: hidden;
font-size: 13px;
border-left: 1px solid #e5e5e5;
border-right: 1px solid #e5e5e5;
border-top: 1px solid #e5e5e5;
padding: 5px 10px;
margin-left: auto;
margin-right: auto;
top: -2px;
left: 0;
right: 0;
z-index: 1;
border-radius: 3px;
background: #f5f5f5;
font-weight: normal;
text-align: center;
}

#customize-posts-content-editor-pane .wp-editor-tools {
padding-top: 5px;
padding-right: 10px;
Expand Down Expand Up @@ -327,4 +350,8 @@ body.customize-posts-content-editor-pane-resize #customize-preview:before {
.customize-control-post_date select {
height: 40px;
}
}

#customize-posts-content-editor-title{
top: 9px;
}
}