WordPress-禁用可视模式,但Tinymce提供了可视编辑器

时间:2018-12-14 18:23:39

标签: wordpress

为用户禁用可视编辑器后,我仍然不能只输入html代码。我在那里找到了extension UIView { func addDashedBorder(_ color: UIColor = UIColor.black, withWidth width: CGFloat = 2, cornerRadius: CGFloat = 5, dashPattern: [NSNumber] = [3,6]) { let shapeLayer = CAShapeLayer() shapeLayer.bounds = bounds shapeLayer.position = CGPoint(x: bounds.width/2, y: bounds.height/2) shapeLayer.fillColor = nil shapeLayer.strokeColor = color.cgColor shapeLayer.lineWidth = width shapeLayer.lineJoin = CAShapeLayerLineJoin.round // Updated in swift 4.2 shapeLayer.lineDashPattern = dashPattern shapeLayer.path = UIBezierPath(roundedRect: bounds, cornerRadius: cornerRadius).cgPath self.layer.addSublayer(shapeLayer) } } 视觉编辑器。

screenshot

0 个答案:

没有答案