@haluo/biz 2.0.38 → 2.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -405,17 +405,6 @@
405
405
  child = children[i];
406
406
  isBR = child.nodeName === "BR";
407
407
  if (!isBR && isInline(child)) {
408
- if (child.classList && child.classList.contains("halo-picture-area")) {
409
- return;
410
- }
411
- if (!wrapper) {
412
- wrapper = createElement(
413
- doc2,
414
- config.blockTag,
415
- config.blockAttributes
416
- );
417
- }
418
- wrapper.appendChild(child);
419
408
  i -= 1;
420
409
  l -= 1;
421
410
  } else if (isBR || wrapper) {
package/dist/style.css CHANGED
@@ -462,6 +462,90 @@
462
462
  margin-top: 12px;
463
463
  text-align: center;
464
464
  }
465
+ /**
466
+ * Created by wanghui on 2017-04-21.
467
+ *
468
+ */
469
+ .topic-popover-mask {
470
+ position: fixed;
471
+ top: 0;
472
+ left: 0;
473
+ right: 0;
474
+ bottom: 0;
475
+ z-index: 999;
476
+ background: transparent;
477
+ }
478
+ .topic-popover {
479
+ position: fixed;
480
+ z-index: 9999;
481
+ background: #fff;
482
+ border-radius: 4px;
483
+ box-sizing: border-box;
484
+ box-shadow: 0 4px 17px rgba(0, 0, 0, 0.12);
485
+ width: 430px;
486
+ height: 286px;
487
+ overflow-y: auto;
488
+ }
489
+ .topic-popover .topic-popover-content .topic-tabs {
490
+ display: flex;
491
+ border-bottom: 1px solid #f0f0f0;
492
+ background: #fafafa;
493
+ }
494
+ .topic-popover .topic-popover-content .topic-tabs .topic-tab {
495
+ flex: 1;
496
+ padding: 12px 16px;
497
+ text-align: center;
498
+ font-size: 14px;
499
+ color: #666;
500
+ cursor: pointer;
501
+ border-bottom: 2px solid transparent;
502
+ transition: all 0.2s;
503
+ }
504
+ .topic-popover .topic-popover-content .topic-tabs .topic-tab:hover {
505
+ color: #FF3C08;
506
+ background: #f5f5f5;
507
+ }
508
+ .topic-popover .topic-popover-content .topic-tabs .topic-tab.active {
509
+ color: #FF3C08;
510
+ border-bottom-color: #FF3C08;
511
+ background: #fff;
512
+ }
513
+ .topic-popover .topic-popover-content .topic-search-header {
514
+ padding: 12px 16px;
515
+ border-bottom: 1px solid #f0f0f0;
516
+ background: #fafafa;
517
+ }
518
+ .topic-popover .topic-popover-content .topic-search-header .topic-search-title {
519
+ font-size: 14px;
520
+ color: #333;
521
+ font-weight: 500;
522
+ }
523
+ .topic-popover .topic-popover-content .topic-list-container {
524
+ max-height: 240px;
525
+ overflow-y: auto;
526
+ }
527
+ .topic-popover .topic-popover-content .topic-list-container .topic-list .topic-item {
528
+ padding: 12px 16px;
529
+ font-size: 14px;
530
+ color: #333;
531
+ cursor: pointer;
532
+ border-bottom: 1px solid #f8f8f8;
533
+ transition: background-color 0.2s;
534
+ }
535
+ .topic-popover .topic-popover-content .topic-list-container .topic-list .topic-item:hover {
536
+ background: #f5f5f5;
537
+ color: #FF3C08;
538
+ }
539
+ .topic-popover .topic-popover-content .topic-list-container .topic-list .topic-item:last-child {
540
+ border-bottom: none;
541
+ }
542
+ .topic-popover .topic-popover-content .topic-list-container .topic-list .topic-loading,
543
+ .topic-popover .topic-popover-content .topic-list-container .topic-list .topic-empty {
544
+ padding: 20px 16px;
545
+ text-align: center;
546
+ font-size: 14px;
547
+ color: #999;
548
+ }
465
549
  .collect-article_lable {
466
550
  font-size: 14px;
467
551
  color: #333333;
@@ -572,10 +656,6 @@
572
656
  }
573
657
  .editor mdd-topic {
574
658
  pointer-events: none;
575
- -webkit-user-select: none;
576
- -moz-user-select: none;
577
- -ms-user-select: none;
578
- user-select: none;
579
659
  color: #5288F6;
580
660
  }
581
661
  .editor ol,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@haluo/biz",
3
3
  "description": "rich text",
4
- "version": "2.0.38",
4
+ "version": "2.0.39",
5
5
  "type": "module",
6
6
  "module": "./dist/haluo-biz.js",
7
7
  "main": "./dist/haluo-biz.umd.cjs",