braft-extensions icon indicating copy to clipboard operation
braft-extensions copied to clipboard

react-color 后。加了control无法显示出来啊

Open wangxingxing123654 opened this issue 6 years ago • 19 comments

wangxingxing123654 avatar Apr 28 '19 03:04 wangxingxing123654

贴代码

margox avatar Apr 28 '19 04:04 margox

------------------ 原始邮件 ------------------ 发件人: "超能刚哥"[email protected]; 发送时间: 2019年4月28日(星期天) 中午12:23 收件人: "margox/braft-extensions"[email protected]; 抄送: "王星星"[email protected]; "Author"[email protected]; 主题: Re: [margox/braft-extensions] react-color 后。加了control无法显示出来啊 (#27)

贴代码

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

wangxingxing123654 avatar Apr 28 '19 04:04 wangxingxing123654

(┬_┬)(┬_┬)(┬_┬)

margox avatar Apr 28 '19 04:04 margox

image

wangxingxing123654 avatar Apr 28 '19 04:04 wangxingxing123654

controls是怎么定义的,颜色选择器扩展是如何用的?

margox avatar Apr 28 '19 04:04 margox

https://braft.margox.cn/demos/color-picker 是参考的这个例子么

margox avatar Apr 28 '19 04:04 margox

另外我想问下。如果我想自定义点击链接的样式。我该怎么做?

image

wangxingxing123654 avatar Apr 28 '19 04:04 wangxingxing123654

https://braft.margox.cn/demos/color-picker 是参考的这个例子么

是的。

wangxingxing123654 avatar Apr 28 '19 04:04 wangxingxing123654

看看你的controls是什么,还有BraftEditor.use(ColorPicker())那一段是怎么写的。

margox avatar Apr 28 '19 04:04 margox

另外我想问下。如果我想自定义点击链接的样式。我该怎么做?

image

这个可以用extendControls里面的modal或者dropdown类型,配合ContentUtils.toggleSelectionLink来实现

margox avatar Apr 28 '19 04:04 margox

看看你的controls是什么,还有BraftEditor.use(ColorPicker())那一段是怎么写的。

image

wangxingxing123654 avatar Apr 28 '19 04:04 wangxingxing123654

image

wangxingxing123654 avatar Apr 28 '19 04:04 wangxingxing123654

高级取色器扩展会替换掉原有的text-color控件,你这controls里面把text-color去掉了,那这个高级取色器当然就不会显示出来了。。。

margox avatar Apr 28 '19 05:04 margox

高级取色器扩展会替换掉原有的text-color控件,你这controls里面把text-color去掉了,那这个高级取色器当然就不会显示出来了。。。

因为文档里面没有标明有哪些具体的配置项。我建议文档要更新一下。

wangxingxing123654 avatar Apr 28 '19 05:04 wangxingxing123654

高级取色器扩展会替换掉原有的text-color控件,你这controls里面把text-color去掉了,那这个高级取色器当然就不会显示出来了。。。

ok了。多谢

wangxingxing123654 avatar Apr 28 '19 05:04 wangxingxing123654

高级取色器扩展会替换掉原有的text-color控件,你这controls里面把text-color去掉了,那这个高级取色器当然就不会显示出来了。。。

因为文档里面没有标明有哪些具体的配置项。我建议文档要更新一下。 https://www.yuque.com/braft-editor/be/gz44tn#bo49ph 一直都有的

margox avatar Apr 28 '19 06:04 margox

高级取色器扩展会替换掉原有的text-color控件,你这controls里面把text-color去掉了,那这个高级取色器当然就不会显示出来了。。。

因为文档里面没有标明有哪些具体的配置项。我建议文档要更新一下。 https://www.yuque.com/braft-editor/be/gz44tn#bo49ph 一直都有的

o .没有找到这个云雀。只找到了官网。官网没看到这个。

wangxingxing123654 avatar Apr 28 '19 06:04 wangxingxing123654

官网上面的“查看文档”点进去就是语雀啦

margox avatar Apr 28 '19 06:04 margox

另外我想问下。如果我想自定义点击链接的样式。我该怎么做? image

这个可以用extendControls里面的modal或者dropdown类型,配合ContentUtils.toggleSelectionLink来实现

image 想问下这个target参数怎么确认的呢??我怎么能把这个target定位为我选中的文字呢

wangxingxing123654 avatar Apr 28 '19 11:04 wangxingxing123654